mirror of
https://github.com/langgenius/dify.git
synced 2026-01-08 07:14:14 +00:00
fix: make the End node always nested in the root
This commit is contained in:
@@ -82,10 +82,9 @@ function buildLogTree(nodes: NodeTracing[]): TracingNodeProps[] {
|
||||
if (node.node_type === BlockEnum.Iteration) {
|
||||
parallel_id = node.parallel_id ?? null
|
||||
parallel_start_node_id = node.parallel_start_node_id ?? null
|
||||
console.log(node)
|
||||
}
|
||||
|
||||
if (!parallel_id) {
|
||||
if (!parallel_id || node.node_type === BlockEnum.End) {
|
||||
rootNodes.push({
|
||||
id: node.id,
|
||||
isParallel: false,
|
||||
|
||||
Reference in New Issue
Block a user