mirror of https://github.com/langgenius/dify.git
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>
This commit is contained in:
parent
715f3affe5
commit
e6f00a2bf9
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue