mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
fix(editor): Recover from unsaved finished execution (#5121)
* 🐛 Recover from unsaved fixed execution * 🔥 Remove logging * ✏️ Use i18n
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user