diff --git a/packages/editor-ui/src/components/mixins/workflowHelpers.ts b/packages/editor-ui/src/components/mixins/workflowHelpers.ts index 298e354fb5..fc963b54ca 100644 --- a/packages/editor-ui/src/components/mixins/workflowHelpers.ts +++ b/packages/editor-ui/src/components/mixins/workflowHelpers.ts @@ -437,7 +437,7 @@ export const workflowHelpers = mixins( return returnData['__xxxxxxx__']; }, - async saveCurrentWorkflow({name, tags, active}: {name?: string, tags?: string[], active?: boolean} = {}): Promise { + async saveCurrentWorkflow({name, tags}: {name?: string, tags?: string[]} = {}): Promise { const currentWorkflow = this.$route.params.name; if (!currentWorkflow) { return this.saveAsNewWorkflow({name, tags}); @@ -457,10 +457,6 @@ export const workflowHelpers = mixins( workflowDataRequest.tags = tags; } - if (active !== undefined) { - workflowDataRequest.active = active; - } - const workflowData = await this.restApi().updateWorkflow(currentWorkflow, workflowDataRequest); if (name) { @@ -473,14 +469,6 @@ export const workflowHelpers = mixins( this.$store.commit('setWorkflowTagIds', tagIds); } - - this.$store.commit('setActive', workflowData.active); - if (workflowData.active === true) { - this.$store.commit('setWorkflowActive', workflowData.id); - } else { - this.$store.commit('setWorkflowInactive', workflowData.id); - } - this.$store.commit('setStateDirty', false); this.$store.commit('removeActiveAction', 'workflowSaving'); this.$externalHooks().run('workflow.afterUpdate', { workflowData });