Skip to content

Commit d362405

Browse files
committed
minor
1 parent a706ec1 commit d362405

File tree

1 file changed

+4
-3
lines changed
  • services/static-webserver/client/source/class/osparc/data/model

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -862,19 +862,20 @@ qx.Class.define("osparc.data.model.Workbench", {
862862
workbenchPatchesByNode[nodeId].push(workbenchPatch);
863863
});
864864

865-
// first remove nodes
865+
// first, remove nodes
866866
nodesRemoved.forEach(nodeId => {
867867
const node = this.getNode(nodeId);
868868
if (node) {
869869
node.nodeRemoved(nodeId);
870870
}
871871
this.__nodeRemoved(nodeId);
872+
delete workbenchPatchesByNode[nodeId];
872873
});
873874

874-
// second add nodes
875+
// second, add nodes
875876
console.log("Adding nodes", nodesAdded);
876877

877-
// third update nodes
878+
// third, update nodes
878879
Object.keys(workbenchPatchesByNode).forEach(nodeId => {
879880
const node = this.getNode(nodeId);
880881
if (node === null) {

0 commit comments

Comments
 (0)