refactor(editor): Update RunDataAi helpers to use connections instead of Workflow object (no-changelog) (#17630)

This commit is contained in:
Alex Grozav
2025-07-24 18:29:25 +03:00
committed by GitHub
parent 4b626e5282
commit 3f2e43e919
3 changed files with 76 additions and 32 deletions

View File

@@ -31,11 +31,20 @@ const selectedRun: Ref<IAiData[]> = ref([]);
const i18n = useI18n();
const aiData = computed<AIResult[]>(() =>
createAiData(props.node.name, props.workflow, workflowsStore.getWorkflowResultDataByNodeName),
createAiData(
props.node.name,
props.workflow.connectionsBySourceNode,
workflowsStore.getWorkflowResultDataByNodeName,
),
);
const executionTree = computed<TreeNode[]>(() =>
getTreeNodeData(props.node.name, props.workflow, aiData.value, props.runIndex),
getTreeNodeData(
props.node.name,
props.workflow.connectionsBySourceNode,
aiData.value,
props.runIndex,
),
);
function isTreeNodeSelected(node: TreeNode) {