Skip to content

Commit 7326709

Browse files
committed
filtering working
1 parent 0b2aa6d commit 7326709

File tree

1 file changed

+4
-1
lines changed
  • services/static-webserver/client/source/class/osparc/store

1 file changed

+4
-1
lines changed

services/static-webserver/client/source/class/osparc/store/Templates.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,10 @@ qx.Class.define("osparc.store.Templates", {
5858
getTemplatesHypertools: function() {
5959
return this.getTemplates()
6060
.then(templates => {
61-
return templates.filter(t => osparc.study.Utils.extractTemplateType(t) === osparc.data.model.StudyUI.HYPERTOOL_TYPE);
61+
const hypertools = templates.filter(t => osparc.study.Utils.extractTemplateType(t) === osparc.data.model.StudyUI.HYPERTOOL_TYPE);
62+
// required for filtering
63+
hypertools.forEach(hypertool => hypertool.type = osparc.data.model.StudyUI.HYPERTOOL_TYPE);
64+
return hypertools;
6265
});
6366
},
6467

0 commit comments

Comments
 (0)