fix: showStudyList config (#1647)

* fix: `showStudyList` config

* showStudyList should default to true if not defined
This commit is contained in:
Danny Brown authored and GitHub committed 2020-04-17 12:26:09 -04:00
1 parent b0cfc45f83
commit d9fc7bbb0e
5 files changed
+47 -35

No files matched your search

+2 -7
View File
@@ -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;
},