mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
🐛 Fix issue that workflow displayed as changed on activate/deactivate
This commit is contained in:
parent
3e0b9f2eba
commit
a2222fa5d6
|
@ -138,14 +138,12 @@ export const store = new Vuex.Store({
|
|||
state.activeWorkflows = newActiveWorkflows;
|
||||
},
|
||||
setWorkflowActive (state, workflowId: string) {
|
||||
state.stateIsDirty = true;
|
||||
const index = state.activeWorkflows.indexOf(workflowId);
|
||||
if (index === -1) {
|
||||
state.activeWorkflows.push(workflowId);
|
||||
}
|
||||
},
|
||||
setWorkflowInactive (state, workflowId: string) {
|
||||
state.stateIsDirty = true;
|
||||
const index = state.activeWorkflows.indexOf(workflowId);
|
||||
if (index !== -1) {
|
||||
state.selectedNodes.splice(index, 1);
|
||||
|
|
Loading…
Reference in a new issue