fix: Fix lag when node parameters are updated (#6941)

fix: Fix lag when node parameteres are updated
This commit is contained in:
Mutasem Aldmour
2023-08-16 13:33:48 +02:00
committed by GitHub
parent fde6ad1e7f
commit 3eb65e08c4
2 changed files with 22 additions and 6 deletions

View File

@@ -181,6 +181,14 @@ export const nodeHelpers = defineComponent({
}
},
updateNodeCredentialIssuesByName(name: string): void {
const node = this.workflowsStore.getNodeByName(name);
if (node) {
this.updateNodeCredentialIssues(node);
}
},
// Updates the credential-issues of the node
updateNodeCredentialIssues(node: INodeUi): void {
const fullNodeIssues: INodeIssues | null = this.getNodeCredentialIssues(node);
@@ -197,6 +205,14 @@ export const nodeHelpers = defineComponent({
});
},
updateNodeParameterIssuesByName(name: string): void {
const node = this.workflowsStore.getNodeByName(name);
if (node) {
this.updateNodeParameterIssues(node);
}
},
// Updates the parameter-issues of the node
updateNodeParameterIssues(node: INodeUi, nodeType?: INodeTypeDescription): void {
if (nodeType === undefined) {