@@ -148,18 +148,6 @@ qx.Class.define("osparc.data.model.Workbench", {
148148 return node ;
149149 } ,
150150
151- __deserializeEdge : function ( node , inputNodes = [ ] ) {
152- const inputNodeIds = inputNodes || [ ] ;
153- inputNodeIds . forEach ( inputNodeId => {
154- const inputNode = this . getNode ( inputNodeId ) ;
155- if ( inputNode === null ) {
156- return ;
157- }
158- const edge = new osparc . data . model . Edge ( null , inputNode , node ) ;
159- this . addEdge ( edge ) ;
160- node . addInputNode ( inputNodeId ) ;
161- } ) ;
162- } ,
163151
164152 __deserializeEdges : function ( workbenchData ) {
165153 for ( const nodeId in workbenchData ) {
@@ -169,7 +157,15 @@ qx.Class.define("osparc.data.model.Workbench", {
169157 }
170158 const nodeData = workbenchData [ nodeId ] ;
171159 const inputNodeIds = nodeData . inputNodes || [ ] ;
172- this . __deserializeEdge ( node , inputNodeIds ) ;
160+ inputNodeIds . forEach ( inputNodeId => {
161+ const inputNode = this . getNode ( inputNodeId ) ;
162+ if ( inputNode === null ) {
163+ return ;
164+ }
165+ const edge = new osparc . data . model . Edge ( null , inputNode , node ) ;
166+ this . addEdge ( edge ) ;
167+ node . addInputNode ( inputNodeId ) ;
168+ } ) ;
173169 }
174170 } ,
175171
@@ -911,7 +907,6 @@ qx.Class.define("osparc.data.model.Workbench", {
911907 const node = this . __createNode ( nodeData [ "key" ] , nodeData [ "version" ] , nodeId ) ;
912908 node . fetchMetadataAndPopulate ( nodeData , nodeUiData )
913909 . then ( ( ) => {
914- this . __deserializeEdges ( workbenchData ) ;
915910 this . fireDataEvent ( "nodeAdded" , node ) ;
916911 node . checkState ( ) ;
917912 } ) ;
0 commit comments