mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
fix(editor): fix performance issues when opening node or editing code node with a lot of data (#4388)
* debounce clicks * debounce correctly * debounce resize * if initialized avoid * set watcher fixes * add deboucne for setting values * increase debounce * reset workspace for memory issues * address comment * decrease debounce time * decrease debounce time * clean up * revert back to trailing * support dbl
This commit is contained in:
@@ -352,7 +352,9 @@ export default mixins(
|
||||
this.avgOutputRowHeight = 0;
|
||||
this.avgInputRowHeight = 0;
|
||||
|
||||
this.$store.commit('ui/setNDVSessionId');
|
||||
setTimeout(() => {
|
||||
this.$store.commit('ui/setNDVSessionId');
|
||||
}, 0);
|
||||
this.$externalHooks().run('dataDisplay.nodeTypeChanged', {
|
||||
nodeSubtitle: this.getNodeSubtitle(node, this.activeNodeType, this.getCurrentWorkflow()),
|
||||
});
|
||||
@@ -397,10 +399,14 @@ export default mixins(
|
||||
this.runInputIndex = -1;
|
||||
},
|
||||
inputNodeName(nodeName: string | undefined) {
|
||||
this.$store.commit('ui/setInputNodeName', nodeName);
|
||||
setTimeout(() => {
|
||||
this.$store.commit('ui/setInputNodeName', nodeName);
|
||||
}, 0);
|
||||
},
|
||||
inputRun() {
|
||||
this.$store.commit('ui/setInputRunIndex', this.inputRun);
|
||||
setTimeout(() => {
|
||||
this.$store.commit('ui/setInputRunIndex', this.inputRun);
|
||||
}, 0);
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
|
||||
Reference in New Issue
Block a user