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

@@ -21,7 +21,7 @@ export interface Props {
node: INodeUi;
runIndex?: number;
slim?: boolean;
workflow: Workflow;
workflowObject: Workflow;
}
const props = withDefaults(defineProps<Props>(), { runIndex: 0 });
const workflowsStore = useWorkflowsStore();
@@ -33,7 +33,7 @@ const i18n = useI18n();
const aiData = computed<AIResult[]>(() =>
createAiData(
props.node.name,
props.workflow.connectionsBySourceNode,
props.workflowObject.connectionsBySourceNode,
workflowsStore.getWorkflowResultDataByNodeName,
),
);
@@ -41,7 +41,7 @@ const aiData = computed<AIResult[]>(() =>
const executionTree = computed<TreeNode[]>(() =>
getTreeNodeData(
props.node.name,
props.workflow.connectionsBySourceNode,
props.workflowObject.connectionsBySourceNode,
aiData.value,
props.runIndex,
),