🐛 Fix issue that workflow displayed as changed on activate/deactivate

This commit is contained in:
Jan Oberhauser 2020-12-11 19:17:53 +01:00
parent 3e0b9f2eba
commit a2222fa5d6

View file

@ -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);