mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(editor): Fix save modal appearing after duplicating a workflow (#5247)
🐛 - fixed post duplication save issue
This commit is contained in:
@@ -929,7 +929,6 @@ export const workflowHelpers = mixins(externalHooks, nodeHelpers, restApi, showM
|
|||||||
const workflowData = await this.restApi().createNewWorkflow(workflowDataRequest);
|
const workflowData = await this.restApi().createNewWorkflow(workflowDataRequest);
|
||||||
|
|
||||||
this.workflowsStore.addWorkflow(workflowData);
|
this.workflowsStore.addWorkflow(workflowData);
|
||||||
this.workflowsStore.setWorkflowVersionId(workflowData.versionId);
|
|
||||||
|
|
||||||
if (
|
if (
|
||||||
this.settingsStore.isEnterpriseFeatureEnabled(EnterpriseEditionFeature.Sharing) &&
|
this.settingsStore.isEnterpriseFeatureEnabled(EnterpriseEditionFeature.Sharing) &&
|
||||||
@@ -953,6 +952,7 @@ export const workflowHelpers = mixins(externalHooks, nodeHelpers, restApi, showM
|
|||||||
|
|
||||||
this.workflowsStore.setActive(workflowData.active || false);
|
this.workflowsStore.setActive(workflowData.active || false);
|
||||||
this.workflowsStore.setWorkflowId(workflowData.id);
|
this.workflowsStore.setWorkflowId(workflowData.id);
|
||||||
|
this.workflowsStore.setWorkflowVersionId(workflowData.versionId);
|
||||||
this.workflowsStore.setWorkflowName({ newName: workflowData.name, setStateDirty: false });
|
this.workflowsStore.setWorkflowName({ newName: workflowData.name, setStateDirty: false });
|
||||||
this.workflowsStore.setWorkflowSettings((workflowData.settings as IWorkflowSettings) || {});
|
this.workflowsStore.setWorkflowSettings((workflowData.settings as IWorkflowSettings) || {});
|
||||||
this.uiStore.stateIsDirty = false;
|
this.uiStore.stateIsDirty = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user