Skip to content

Commit ba84dda

Browse files
committed
minor
1 parent a1b95ad commit ba84dda

File tree

1 file changed

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

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -297,10 +297,10 @@ qx.Class.define("osparc.data.model.StudyUI", {
297297
if (currentStudy) {
298298
const node = currentStudy.getWorkbench().getNode(nodeId);
299299
if (op === "replace") {
300-
if (path.includes("position")) {
300+
if (path.includes("/position")) {
301301
this.__updateNodePositionFromPatch(node, op, path, value);
302302
}
303-
if (path.includes("marker")) {
303+
if (path.includes("/marker")) {
304304
this.__updateNodeMarkerFromPatch(node, op, path, value);
305305
}
306306
}
@@ -313,10 +313,10 @@ qx.Class.define("osparc.data.model.StudyUI", {
313313
if (node) {
314314
if (op === "replace") {
315315
const newPos = node.getPosition();
316-
if (path.includes("position/x")) {
316+
if (path.includes("/position/x")) {
317317
newPos.x = value;
318318
}
319-
if (path.includes("position/y")) {
319+
if (path.includes("/position/y")) {
320320
newPos.y = value;
321321
}
322322
node.setPosition(newPos);
@@ -332,7 +332,7 @@ qx.Class.define("osparc.data.model.StudyUI", {
332332
} else if (op === "add") {
333333
// it was added
334334
node.addMarker(value);
335-
} else if (op === "replace" && path.includes("color")) {
335+
} else if (op === "replace" && path.includes("/color")) {
336336
// it was updated
337337
if (node.getMarker()) {
338338
node.getMarker().setColor(value);

0 commit comments

Comments
 (0)