clear execution data on disable/delete

This commit is contained in:
Mutasem 2021-11-11 11:43:47 +01:00
parent 9de9e30b57
commit 17d9278b75
3 changed files with 9 additions and 0 deletions

View file

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

View file

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

View file

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