mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
fix: store copy of workflow in workflowsById to prevent node data bugs (#4637)
This commit is contained in:
@@ -24,6 +24,7 @@ import {
|
||||
} from "@/Interface";
|
||||
import {defineStore} from "pinia";
|
||||
import {
|
||||
deepCopy,
|
||||
IConnection,
|
||||
IConnections,
|
||||
IDataObject,
|
||||
@@ -334,7 +335,10 @@ export const useWorkflowsStore = defineStore(STORES.WORKFLOWS, {
|
||||
},
|
||||
|
||||
addWorkflow(workflow: IWorkflowDb) : void {
|
||||
Vue.set(this.workflowsById, workflow.id, workflow);
|
||||
Vue.set(this.workflowsById, workflow.id, {
|
||||
...this.workflowsById[workflow.id],
|
||||
...deepCopy(workflow),
|
||||
});
|
||||
},
|
||||
|
||||
setWorkflowActive(workflowId: string): void {
|
||||
|
||||
Reference in New Issue
Block a user