@@ -489,6 +489,7 @@ qx.Class.define("osparc.data.model.Node", {
489489 this . populateNodeUIData ( nodeData ) ;
490490 // new place to store the position and marker
491491 this . populateNodeUIData ( nodeUiData ) ;
492+ this . listenToChanges ( ) ;
492493 } )
493494 . catch ( err => {
494495 console . log ( err ) ;
@@ -1350,28 +1351,26 @@ qx.Class.define("osparc.data.model.Node", {
13501351 this . self ( ) . ListenChangesProps . forEach ( key => {
13511352 switch ( key ) {
13521353 case "inputs" :
1353- if ( this . hasPropsForm ( ) ) {
1354- // listen to changes in the props form
1355- this . getPropsForm ( ) . addListener ( "changeData" , ( ) => {
1356- const data = this . __getInputData ( ) ;
1357- this . fireDataEvent ( "projectDocumentChanged" , {
1358- "op" : "replace" ,
1359- "path" : `/workbench/${ nodeId } /inputs` ,
1360- "value" : data ,
1361- "osparc-resource" : "node" ,
1362- } ) ;
1354+ // listen to changes in the props form
1355+ this . getPropsForm ( ) . addListener ( "changeData" , ( ) => {
1356+ const data = this . __getInputData ( ) ;
1357+ this . fireDataEvent ( "projectDocumentChanged" , {
1358+ "op" : "replace" ,
1359+ "path" : `/workbench/${ nodeId } /inputs` ,
1360+ "value" : data ,
1361+ "osparc-resource" : "node" ,
13631362 } ) ;
1364- // listen to changes in link and unlink of ports
1365- this . getPropsForm ( ) . addListener ( "linkFieldModified" , ( ) => {
1366- const data = this . __getInputData ( ) ;
1367- this . fireDataEvent ( "projectDocumentChanged" , {
1368- "op" : "replace" ,
1369- "path " : `/workbench/ ${ nodeId } /inputs` ,
1370- "value " : data ,
1371- "osparc-resource " : "node" ,
1372- } ) ;
1363+ } ) ;
1364+ // listen to changes in link and unlink of ports
1365+ this . getPropsForm ( ) . addListener ( "linkFieldModified" , ( ) => {
1366+ const data = this . __getInputData ( ) ;
1367+ this . fireDataEvent ( "projectDocumentChanged" , {
1368+ "op " : "replace" ,
1369+ "path " : `/workbench/ ${ nodeId } /inputs` ,
1370+ "value " : data ,
1371+ "osparc-resource" : "node" ,
13731372 } ) ;
1374- }
1373+ } ) ;
13751374 break ;
13761375 case "inputsUnits" :
13771376 if ( this . hasPropsForm ( ) ) {
0 commit comments