File tree Expand file tree Collapse file tree 1 file changed +14
-12
lines changed
services/static-webserver/client/source/class/osparc/data/model Expand file tree Collapse file tree 1 file changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -573,19 +573,21 @@ qx.Class.define("osparc.data.model.Study", {
573573 // Do not listen to output related backend updates if the node is a frontend node.
574574 // The frontend controls its output values, progress and states.
575575 // If a File Picker is uploading a file, the backend could override the current state with some older state.
576- if ( node && nodeData && ! osparc . data . model . Node . isFrontend ( node . getMetaData ( ) ) ) {
577- node . setOutputData ( nodeData . outputs ) ;
578- if ( "progress" in nodeData ) {
579- const progress = Number . parseInt ( nodeData [ "progress" ] ) ;
580- node . getStatus ( ) . setProgress ( progress ) ;
576+ if ( node ) {
577+ if ( nodeData && ! osparc . data . model . Node . isFrontend ( node . getMetaData ( ) ) ) {
578+ node . setOutputData ( nodeData . outputs ) ;
579+ if ( "progress" in nodeData ) {
580+ const progress = Number . parseInt ( nodeData [ "progress" ] ) ;
581+ node . getStatus ( ) . setProgress ( progress ) ;
582+ }
583+ node . populateStates ( nodeData ) ;
584+ }
585+ if ( "errors" in nodeUpdatedData ) {
586+ const errors = nodeUpdatedData [ "errors" ] ;
587+ node . setErrors ( errors ) ;
588+ } else {
589+ node . setErrors ( [ ] ) ;
581590 }
582- node . populateStates ( nodeData ) ;
583- }
584- if ( node && "errors" in nodeUpdatedData ) {
585- const errors = nodeUpdatedData [ "errors" ] ;
586- node . setErrors ( errors ) ;
587- } else {
588- node . setErrors ( [ ] ) ;
589591 }
590592 } ,
591593
You can’t perform that action at this time.
0 commit comments