mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
clear execution data on disable/delete
This commit is contained in:
parent
9de9e30b57
commit
17d9278b75
|
@ -344,6 +344,7 @@ export const nodeHelpers = mixins(
|
||||||
};
|
};
|
||||||
|
|
||||||
this.$store.commit('updateNodeProperties', updateInformation);
|
this.$store.commit('updateNodeProperties', updateInformation);
|
||||||
|
this.$store.commit('clearNodeExecutionData', node.name);
|
||||||
this.updateNodeParameterIssues(node);
|
this.updateNodeParameterIssues(node);
|
||||||
this.updateNodeCredentialIssues(node);
|
this.updateNodeCredentialIssues(node);
|
||||||
}
|
}
|
||||||
|
|
|
@ -576,6 +576,13 @@ export const store = new Vuex.Store({
|
||||||
}
|
}
|
||||||
state.workflowExecutionData.data.resultData.runData[pushData.nodeName].push(pushData.data);
|
state.workflowExecutionData.data.resultData.runData[pushData.nodeName].push(pushData.data);
|
||||||
},
|
},
|
||||||
|
clearNodeExecutionData (state, nodeName: string): void {
|
||||||
|
if (state.workflowExecutionData === null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
Vue.delete(state.workflowExecutionData.data.resultData.runData, nodeName);
|
||||||
|
},
|
||||||
|
|
||||||
setWorkflowSettings (state, workflowSettings: IWorkflowSettings) {
|
setWorkflowSettings (state, workflowSettings: IWorkflowSettings) {
|
||||||
Vue.set(state.workflow, 'settings', workflowSettings);
|
Vue.set(state.workflow, 'settings', workflowSettings);
|
||||||
|
|
|
@ -1917,6 +1917,7 @@ export default mixins(
|
||||||
this.$store.commit('removeAllNodeConnection', node);
|
this.$store.commit('removeAllNodeConnection', node);
|
||||||
|
|
||||||
this.$store.commit('removeNode', node);
|
this.$store.commit('removeNode', node);
|
||||||
|
this.$store.commit('clearNodeExecutionData', node.name);
|
||||||
|
|
||||||
// Now it can draw again
|
// Now it can draw again
|
||||||
this.instance.setSuspendDrawing(false, true);
|
this.instance.setSuspendDrawing(false, true);
|
||||||
|
|
Loading…
Reference in a new issue