From e2d7c1804f2d5da15d96edeefd50c5b8e2753fd1 Mon Sep 17 00:00:00 2001 From: Michael Auerswald Date: Thu, 23 Feb 2023 13:00:28 +0100 Subject: [PATCH] fix(editor): Apply correct IRunExecutionData to finished workflow (#5552) fix wrong IRunExecutionData being applied --- packages/editor-ui/src/stores/workflows.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/editor-ui/src/stores/workflows.ts b/packages/editor-ui/src/stores/workflows.ts index b8af7235af3e8..6d9e43363b4ce 100644 --- a/packages/editor-ui/src/stores/workflows.ts +++ b/packages/editor-ui/src/stores/workflows.ts @@ -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); } },