From 41e5d10d409defc87af0290974e9591531284947 Mon Sep 17 00:00:00 2001 From: oleg Date: Wed, 15 Jan 2025 12:36:20 +0100 Subject: [PATCH] fix(editor): Fix `hasTrimmedItem` for multi-output nodes and sub-nodes (no-changelog) (#12612) --- packages/editor-ui/src/utils/executionUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/editor-ui/src/utils/executionUtils.ts b/packages/editor-ui/src/utils/executionUtils.ts index 9a744c16e7..11457e89e4 100644 --- a/packages/editor-ui/src/utils/executionUtils.ts +++ b/packages/editor-ui/src/utils/executionUtils.ts @@ -192,7 +192,7 @@ export const waitingNodeTooltip = (node: INodeUi | null | undefined) => { * finish, when the client receives the full data. */ export function hasTrimmedItem(taskData: ITaskData[]) { - return taskData[0]?.data?.main[0]?.[0].json?.[TRIMMED_TASK_DATA_CONNECTIONS_KEY] ?? false; + return taskData[0]?.data?.main?.[0]?.[0]?.json?.[TRIMMED_TASK_DATA_CONNECTIONS_KEY] ?? false; } /**