fix(editor): Recover from unsaved finished execution (#5121)

* 🐛 Recover from unsaved fixed execution

* 🔥 Remove logging

* ✏️ Use i18n
This commit is contained in:
Iván Ovejero
2023-01-11 10:52:32 +01:00
committed by GitHub
parent 819c4adb3c
commit af55ecd64b
4 changed files with 33 additions and 2 deletions

View File

@@ -15,6 +15,7 @@ import {
INodeUpdatePropertiesInformation,
IPushDataExecutionFinished,
IPushDataNodeExecuteAfter,
IPushDataUnsavedExecutionFinished,
IUpdateInformation,
IUsedCredential,
IWorkflowDb,
@@ -886,7 +887,9 @@ export const useWorkflowsStore = defineStore(STORES.WORKFLOWS, {
}
this.activeExecutions.unshift(newActiveExecution);
},
finishActiveExecution(finishedActiveExecution: IPushDataExecutionFinished): void {
finishActiveExecution(
finishedActiveExecution: IPushDataExecutionFinished | IPushDataUnsavedExecutionFinished,
): void {
// Find the execution to set to finished
const activeExecution = this.activeExecutions.find((execution) => {
return execution.id === finishedActiveExecution.executionId;