File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
services/static-webserver/client/source/class/osparc/dashboard Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -1209,13 +1209,12 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
12091209 break ;
12101210 }
12111211 // then update the search context this will trigger the search
1212- const searchContext = data [ "searchContext" ] ;
1213- switch ( searchContext ) {
1214- case osparc . dashboard . StudyBrowser . CONTEXT . SEARCH_PROJECTS :
1215- case osparc . dashboard . StudyBrowser . CONTEXT . SEARCH_TEMPLATES :
1216- case osparc . dashboard . StudyBrowser . CONTEXT . SEARCH_PUBLIC_TEMPLATES :
1217- this . _changeContext ( searchContext ) ;
1218- break ;
1212+ if ( [
1213+ osparc . dashboard . StudyBrowser . CONTEXT . SEARCH_PROJECTS ,
1214+ osparc . dashboard . StudyBrowser . CONTEXT . SEARCH_TEMPLATES ,
1215+ osparc . dashboard . StudyBrowser . CONTEXT . SEARCH_PUBLIC_TEMPLATES ,
1216+ ] . includes ( curatedContext ) ) {
1217+ this . _changeContext ( curatedContext ) ;
12191218 }
12201219 } ) ;
12211220 } ,
You can’t perform that action at this time.
0 commit comments