Skip to content

Commit

Permalink
Fix incorrect default value ternary operator (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
deadlycoconuts authored Jun 5, 2024
1 parent 52ecdaa commit 0256c00
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions ui/packages/app/src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,14 @@ const config = {

CLOCKWORK_UI_HOMEPAGE: getEnv("REACT_APP_CLOCKWORK_UI_HOMEPAGE"),
KUBEFLOW_UI_HOMEPAGE: getEnv("REACT_APP_KUBEFLOW_UI_HOMEPAGE"),
ALLOW_CUSTOM_STREAM: getEnv("REACT_APP_ALLOW_CUSTOM_STREAM") || true,
ALLOW_CUSTOM_TEAM: getEnv("REACT_APP_ALLOW_CUSTOM_TEAM") || true,
ALLOW_CUSTOM_STREAM:
getEnv("REACT_APP_ALLOW_CUSTOM_STREAM") != null
? getEnv("REACT_APP_ALLOW_CUSTOM_STREAM")
: true,
ALLOW_CUSTOM_TEAM:
getEnv("REACT_APP_ALLOW_CUSTOM_TEAM") != null
? getEnv("REACT_APP_ALLOW_CUSTOM_TEAM")
: true,
PROJECT_INFO_UPDATE_ENABLED:
getEnv("REACT_APP_PROJECT_INFO_UPDATE_ENABLED") || false
};
Expand Down

0 comments on commit 0256c00

Please sign in to comment.