Skip to content

Commit 1a3b6f5

Browse files
committed
minor
1 parent b585dbf commit 1a3b6f5

File tree

1 file changed

+6
-7
lines changed
  • services/static-webserver/client/source/class/osparc/dashboard

1 file changed

+6
-7
lines changed

services/static-webserver/client/source/class/osparc/dashboard/StudyBrowser.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff 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
},

0 commit comments

Comments
 (0)