File tree Expand file tree Collapse file tree 1 file changed +7
-12
lines changed
services/static-webserver/client/source/class/osparc/data/model Expand file tree Collapse file tree 1 file changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -739,25 +739,20 @@ qx.Class.define("osparc.data.model.Workbench", {
739739
740740 __deserializeEdges : function ( workbenchData ) {
741741 for ( const nodeId in workbenchData ) {
742- const nodeData = workbenchData [ nodeId ] ;
743742 const node = this . getNode ( nodeId ) ;
744743 if ( node === null ) {
745744 continue ;
746745 }
747- this . __addInputOutputNodesAndEdges ( node , nodeData . inputNodes ) ;
748- }
749- } ,
750-
751- __addInputOutputNodesAndEdges : function ( node , inputOutputNodeIds ) {
752- if ( inputOutputNodeIds ) {
753- inputOutputNodeIds . forEach ( inputOutputNodeId => {
754- const node1 = this . getNode ( inputOutputNodeId ) ;
755- if ( node1 === null ) {
746+ const nodeData = workbenchData [ nodeId ] ;
747+ const inputNodeIds = nodeData . inputNodes || [ ] ;
748+ inputNodeIds . forEach ( inputNodeId => {
749+ const inputNode = this . getNode ( inputNodeId ) ;
750+ if ( inputNode === null ) {
756751 return ;
757752 }
758- const edge = new osparc . data . model . Edge ( null , node1 , node ) ;
753+ const edge = new osparc . data . model . Edge ( null , inputNode , node ) ;
759754 this . addEdge ( edge ) ;
760- node . addInputNode ( inputOutputNodeId ) ;
755+ node . addInputNode ( inputNodeId ) ;
761756 } ) ;
762757 }
763758 } ,
You can’t perform that action at this time.
0 commit comments