fix: showStudyList config (#1647)
* fix: `showStudyList` config * showStudyList should default to true if not defined
This commit is contained in:
1 parent
b0cfc45f83
commit
d9fc7bbb0e
5 files changed
+47
-35
No files matched your search
@@ -45,9 +45,7 @@ const ROUTES_DEF = {
|
||||
path: ['/studylist', '/'],
|
||||
component: StudyListRouting,
|
||||
condition: appConfig => {
|
||||
return appConfig.showStudyList !== undefined
|
||||
? appConfig.showStudyList
|
||||
: true;
|
||||
return appConfig.showStudyList;
|
||||
},
|
||||
},
|
||||
local: {
|
||||
@@ -72,10 +70,7 @@ const ROUTES_DEF = {
|
||||
'/projects/:project/locations/:location/datasets/:dataset/dicomStores/:dicomStore',
|
||||
component: StudyListRouting,
|
||||
condition: appConfig => {
|
||||
const showList =
|
||||
appConfig.showStudyList !== undefined
|
||||
? appConfig.showStudyList
|
||||
: true;
|
||||
const showList = appConfig.showStudyList;
|
||||
|
||||
return showList && !!appConfig.enableGoogleCloudAdapter;
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user