From e6f00a2bf9fafe127091c333dc4b027506004a9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9B=90=E7=B2=92=20Yanli?= Date: Tue, 10 Mar 2026 20:13:49 +0800 Subject: [PATCH] Update web/app/components/workflow/utils/top-level-tracing.ts Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- web/app/components/workflow/utils/top-level-tracing.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/web/app/components/workflow/utils/top-level-tracing.ts b/web/app/components/workflow/utils/top-level-tracing.ts index 30e0b5c8f6..8ddeb2a957 100644 --- a/web/app/components/workflow/utils/top-level-tracing.ts +++ b/web/app/components/workflow/utils/top-level-tracing.ts @@ -11,9 +11,7 @@ export const upsertTopLevelTracingNodeOnStart = ( if (isNestedTracingNode(startedNode)) return false - const currentIndex = startedNode.id - ? tracing.findIndex(item => item.id === startedNode.id) - : tracing.findIndex(item => item.node_id === startedNode.node_id) + const currentIndex = tracing.findIndex(item => item.id === startedNode.id) if (currentIndex > -1) // Started events are the authoritative snapshot for an execution; merging would retain stale client-side fields. tracing[currentIndex] = startedNode