Skip to content

Commit 330dc2f

Browse files
authored
fix: iteration log index error (#14855)
1 parent 96eed57 commit 330dc2f

File tree

1 file changed

+1
-1
lines changed
  • web/app/components/workflow/run/utils/format-log/iteration

1 file changed

+1
-1
lines changed

web/app/components/workflow/run/utils/format-log/iteration/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ function addChildrenToIterationNode(iterationNode: NodeTracing, childrenNodes: N
66
childrenNodes.forEach((item, index) => {
77
if (!item.execution_metadata) return
88
const { iteration_index = 0 } = item.execution_metadata
9-
const runIndex: number = iteration_index || index
9+
const runIndex: number = iteration_index !== undefined ? iteration_index : index
1010
if (!details[runIndex])
1111
details[runIndex] = []
1212

0 commit comments

Comments
 (0)