From 249b7eba1580a0a2d9574af6bb836f0fe0b9ecf2 Mon Sep 17 00:00:00 2001 From: Alex Grozav Date: Tue, 22 Nov 2022 12:33:59 +0200 Subject: [PATCH] fix: Update workflow title in workflowsById as well (no-changelog) (#4682) --- packages/editor-ui/src/stores/workflows.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/editor-ui/src/stores/workflows.ts b/packages/editor-ui/src/stores/workflows.ts index 6eb912321..97183021b 100644 --- a/packages/editor-ui/src/stores/workflows.ts +++ b/packages/editor-ui/src/stores/workflows.ts @@ -284,6 +284,10 @@ export const useWorkflowsStore = defineStore(STORES.WORKFLOWS, { uiStore.stateIsDirty = true; } this.workflow.name = data.newName; + + if (this.workflow.id !== PLACEHOLDER_EMPTY_WORKFLOW_ID) { + this.workflowsById[this.workflow.id].name = data.newName; + } }, setWorkflowHash(hash: string): void {