fix: Update workflow title in workflowsById as well (no-changelog) (#4682)

This commit is contained in:
Alex Grozav 2022-11-22 12:33:59 +02:00 committed by GitHub
parent a356d7bdba
commit 249b7eba15
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {