File tree 1 file changed +5
-1
lines changed
services/static-webserver/client/source/class/osparc/data/model
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", {
435
435
} ) ;
436
436
} ,
437
437
438
+ // Used for updating some node data through the "nodeUpdated" websocket event
438
439
nodeUpdated : function ( nodeUpdatedData ) {
439
440
const studyId = nodeUpdatedData [ "project_id" ] ;
440
441
if ( studyId !== this . getUuid ( ) ) {
@@ -444,7 +445,10 @@ qx.Class.define("osparc.data.model.Study", {
444
445
const nodeData = nodeUpdatedData [ "data" ] ;
445
446
const workbench = this . getWorkbench ( ) ;
446
447
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 ) ) {
448
452
node . setOutputData ( nodeData . outputs ) ;
449
453
if ( "progress" in nodeData ) {
450
454
const progress = Number . parseInt ( nodeData [ "progress" ] ) ;
You can’t perform that action at this time.
0 commit comments