Skip to content

Commit f433faf

Browse files
committed
minor
1 parent 2bfdc9a commit f433faf

File tree

1 file changed

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

1 file changed

+7
-5
lines changed

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

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -553,11 +553,13 @@ qx.Class.define("osparc.data.model.Node", {
553553
},
554554

555555
populateNodeUIData: function(nodeUIData) {
556-
if ("position" in nodeUIData) {
557-
this.setPosition(nodeUIData.position);
558-
}
559-
if ("marker" in nodeUIData) {
560-
this.addMarker(nodeUIData.marker);
556+
if (nodeUIData) {
557+
if ("position" in nodeUIData) {
558+
this.setPosition(nodeUIData.position);
559+
}
560+
if ("marker" in nodeUIData) {
561+
this.addMarker(nodeUIData.marker);
562+
}
561563
}
562564
},
563565

0 commit comments

Comments
 (0)