File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
packages/frontend/editor-ui/src/composables/usePushConnection/handlers Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import type {
21
21
ExpressionError ,
22
22
IDataObject ,
23
23
IRunExecutionData ,
24
+ IRunData ,
24
25
} from 'n8n-workflow' ;
25
26
import { codeNodeEditorEventBus , globalLinkActionsEventBus } from '@/event-bus' ;
26
27
import { h } from 'vue' ;
@@ -466,6 +467,8 @@ export function setRunExecutionData(
466
467
runExecutionData . resultData . runData = workflowsStore . getWorkflowRunData ;
467
468
}
468
469
470
+ removeRunningTaskData ( runExecutionData . resultData . runData ) ;
471
+
469
472
workflowsStore . executingNode . length = 0 ;
470
473
471
474
workflowsStore . setWorkflowExecutionData ( {
@@ -505,3 +508,11 @@ export function setRunExecutionData(
505
508
const lineNumber = runExecutionData . resultData ?. error ?. lineNumber ;
506
509
codeNodeEditorEventBus . emit ( 'highlightLine' , lineNumber ?? 'last' ) ;
507
510
}
511
+
512
+ function removeRunningTaskData ( runData : IRunData ) : void {
513
+ for ( const [ nodeName , taskItems ] of Object . entries ( runData ) ) {
514
+ if ( taskItems . some ( ( item ) => item . executionStatus === 'running' ) ) {
515
+ runData [ nodeName ] = taskItems . filter ( ( item ) => item . executionStatus !== 'running' ) ;
516
+ }
517
+ }
518
+ }
You can’t perform that action at this time.
0 commit comments