File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
services/static-webserver/client/source/class/osparc/data/model Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1265,7 +1265,8 @@ qx.Class.define("osparc.data.model.Node", {
12651265 this . fireDataEvent ( "updateStudyDocument" , {
12661266 "op" : "replace" ,
12671267 "path" : `/workbench/${ nodeId } /` + key ,
1268- "value" : data
1268+ "value" : data ,
1269+ "osparc-resource" : "node" ,
12691270 } ) ;
12701271 } , this ) ;
12711272 }
Original file line number Diff line number Diff line change @@ -304,8 +304,8 @@ qx.Class.define("osparc.data.model.Study", {
304304
305305 // deep clones object with study-only properties
306306 deepCloneStudyObject : function ( obj , ignoreExtra = false ) {
307- const studyPropKeys = osparc . data . model . Study . getProperties ( ) ;
308307 const studyObject = osparc . utils . Utils . deepCloneObject ( obj ) ;
308+ const studyPropKeys = osparc . data . model . Study . getProperties ( ) ;
309309 Object . keys ( studyObject ) . forEach ( key => {
310310 if ( ! studyPropKeys . includes ( key ) ) {
311311 delete studyObject [ key ] ;
@@ -388,7 +388,8 @@ qx.Class.define("osparc.data.model.Study", {
388388 this . fireDataEvent ( "updateStudyDocument" , {
389389 "op" : "replace" ,
390390 "path" : "/" + key ,
391- "value" : data
391+ "value" : data ,
392+ "osparc-resource" : "study" ,
392393 } ) ;
393394 } , this ) ;
394395 }
You can’t perform that action at this time.
0 commit comments