feat: Update Workflow class usage on the Frontend for better performance (no-changelog) (#17680)

This commit is contained in:
Alex Grozav
2025-08-04 15:04:00 +03:00
committed by GitHub
parent ff8531d544
commit 279dce639a
66 changed files with 659 additions and 660 deletions

View File

@@ -45,8 +45,7 @@ const node = computed(() =>
const parentNode = computed(() => {
if (!node.value) return undefined;
const workflow = workflowsStore.getCurrentWorkflow();
const parentNodes = workflow.getChildNodes(node.value.name, 'ALL', 1);
const parentNodes = workflowsStore.workflowObject.getChildNodes(node.value.name, 'ALL', 1);
if (parentNodes.length === 0) return undefined;
return workflowsStore.getNodeByName(parentNodes[0])?.name;
});