fix(editor): improve expression and parameters performance (#3874)

* fix expr perf issue

* refactor a bit
This commit is contained in:
Mutasem Aldmour
2022-08-12 16:06:57 +02:00
committed by GitHub
parent 762b422488
commit 3608d132c0
10 changed files with 36 additions and 23 deletions

View File

@@ -224,7 +224,7 @@ export default mixins(
);
},
workflow(): Workflow {
return this.getWorkflow();
return this.getCurrentWorkflow();
},
parentNodes(): string[] {
if (this.activeNode) {
@@ -344,7 +344,7 @@ export default mixins(
this.$store.commit('ui/setNDVSessionId');
this.$externalHooks().run('dataDisplay.nodeTypeChanged', {
nodeSubtitle: this.getNodeSubtitle(node, this.activeNodeType, this.getWorkflow()),
nodeSubtitle: this.getNodeSubtitle(node, this.activeNodeType, this.getCurrentWorkflow()),
});
setTimeout(() => {