@@ -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