Skip to content

Commit

Permalink
fix: empty string value in accessGroups field
Browse files Browse the repository at this point in the history
  • Loading branch information
Junjiequan committed Apr 30, 2024
1 parent c0ef6e2 commit 7fad4b5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/config/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ const configuration = () => {
},
accessGroupsStaticConfig: {
enabled: boolean(process.env?.ACCESS_GROUPS_STATIC_ENABLED || true),
value: accessGroupsStaticValues.split(",").map((v) => v.trim()) ?? [],
value:
(accessGroupsStaticValues &&
accessGroupsStaticValues.split(",").map((v) => v.trim())) ??
[],
},
accessGroupsOIDCPayloadConfig: {
enabled: boolean(process.env?.ACCESS_GROUPS_OIDCPAYLOAD_ENABLED || false),
Expand Down

0 comments on commit 7fad4b5

Please sign in to comment.