Skip to content

Commit af18867

Browse files
committed
minor
1 parent 5085238 commit af18867

File tree

1 file changed

+5
-6
lines changed
  • services/static-webserver/client/source/class/osparc/data/model

1 file changed

+5
-6
lines changed

services/static-webserver/client/source/class/osparc/data/model/Workbench.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,10 @@ qx.Class.define("osparc.data.model.Workbench", {
284284
node.addListener("reloadModel", () => this.fireEvent("reloadModel"), this);
285285
node.addListener("updateStudyDocument", () => this.fireEvent("updateStudyDocument"), this);
286286
osparc.utils.Utils.localCache.serviceToFavs(metadata.key);
287+
288+
this.__initNodeSignals(node);
289+
this.__addNode(node);
290+
287291
return node;
288292
},
289293

@@ -317,9 +321,6 @@ qx.Class.define("osparc.data.model.Workbench", {
317321

318322
this.fireEvent("restartAutoSaveTimer");
319323
const node = this.__createNode(this.getStudy(), metadata, nodeId);
320-
this.__initNodeSignals(node);
321-
this.__addNode(node);
322-
323324
node.populateNodeData();
324325
this.__giveUniqueNameToNode(node, node.getLabel());
325326
node.checkState();
@@ -718,9 +719,7 @@ qx.Class.define("osparc.data.model.Workbench", {
718719
for (let i=0; i<nodeIds.length; i++) {
719720
const metadata = values[i];
720721
const nodeId = nodeIds[i];
721-
const node = this.__createNode(this.getStudy(), metadata, nodeId);
722-
this.__initNodeSignals(node);
723-
this.__addNode(node);
722+
this.__createNode(this.getStudy(), metadata, nodeId);
724723
}
725724

726725
// Then populate them (this will avoid issues of connecting nodes that might not be created yet)

0 commit comments

Comments
 (0)