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