fix(editor): Apply correct IRunExecutionData to finished workflow (#5552)

fix wrong IRunExecutionData being applied
This commit is contained in:
Michael Auerswald 2023-02-23 13:00:28 +01:00 committed by GitHub
parent a53f3998a2
commit e2d7c1804f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}
},