Skip to content

Commit 7cd4fa0

Browse files
committed
search working
1 parent 94410ca commit 7cd4fa0

File tree

1 file changed

+3
-1
lines changed
  • services/static-webserver/client/source/class/osparc/dashboard

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1137,9 +1137,11 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
11371137
let searchContext = null;
11381138
switch (this.getCurrentContext()) {
11391139
case "templates":
1140+
case "searchTemplates":
11401141
searchContext = "searchTemplates";
11411142
break;
11421143
case "publicTemplates":
1144+
case "searchPublicTemplates":
11431145
searchContext = "searchPublicTemplates";
11441146
break;
11451147
default:
@@ -1157,7 +1159,7 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
11571159

11581160
_changeContext: function(context, workspaceId = null, folderId = null) {
11591161
if (
1160-
context !== "searchProjects" && // reload studies for a new search
1162+
!context.includes("search") && // load projects if search string changed
11611163
context === this.getCurrentContext() &&
11621164
workspaceId === this.getCurrentWorkspaceId() &&
11631165
folderId === this.getCurrentFolderId()

0 commit comments

Comments
 (0)