mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
feat: Update Workflow class usage on the Frontend for better performance (no-changelog) (#17680)
This commit is contained in:
@@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user