Skip to content

Commit

Permalink
fix(editor): Apply correct IRunExecutionData to finished workflow (#5552
Browse files Browse the repository at this point in the history
)

fix wrong IRunExecutionData being applied
  • Loading branch information
flipswitchingmonkey authored Feb 23, 2023
1 parent a53f399 commit e2d7c18
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/editor-ui/src/stores/workflows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -927,10 +927,8 @@ export const useWorkflowsStore = defineStore(STORES.WORKFLOWS, {

Vue.set(activeExecution, 'finished', finishedActiveExecution.data.finished);
Vue.set(activeExecution, 'stoppedAt', finishedActiveExecution.data.stoppedAt);
if (finishedActiveExecution.data) {
this.setWorkflowExecutionRunData(
finishedActiveExecution.data as unknown as IRunExecutionData,
);
if (finishedActiveExecution.data && (finishedActiveExecution.data as IRun).data) {
this.setWorkflowExecutionRunData((finishedActiveExecution.data as IRun).data);
}
},

Expand Down

0 comments on commit e2d7c18

Please sign in to comment.