File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed 
services/static-webserver/client/source/class/osparc/data/model Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -435,6 +435,7 @@ qx.Class.define("osparc.data.model.Study", {
435435      } ) ; 
436436    } , 
437437
438+     // Used for updating some node data through the "nodeUpdated" websocket event 
438439    nodeUpdated : function ( nodeUpdatedData )  { 
439440      const  studyId  =  nodeUpdatedData [ "project_id" ] ; 
440441      if  ( studyId  !==  this . getUuid ( ) )  { 
@@ -444,7 +445,10 @@ qx.Class.define("osparc.data.model.Study", {
444445      const  nodeData  =  nodeUpdatedData [ "data" ] ; 
445446      const  workbench  =  this . getWorkbench ( ) ; 
446447      const  node  =  workbench . getNode ( nodeId ) ; 
447-       if  ( node  &&  nodeData )  { 
448+       // Do not listen to output related backend updates if the node is a frontend node. 
449+       // The frontend controls its output values, progress and states. 
450+       // If a File Picker is uploading a file, the backend could override the current state with some older state. 
451+       if  ( node  &&  nodeData  &&  ! osparc . data . model . Node . isFrontend ( node ) )  { 
448452        node . setOutputData ( nodeData . outputs ) ; 
449453        if  ( "progress"  in  nodeData )  { 
450454          const  progress  =  Number . parseInt ( nodeData [ "progress" ] ) ; 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You canāt perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments