mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-14 23:06:15 +08:00
fix: make the End node always nested in the root
This commit is contained in:
parent
d7c0ca852e
commit
ee1587c939
@ -82,10 +82,9 @@ function buildLogTree(nodes: NodeTracing[]): TracingNodeProps[] {
|
|||||||
if (node.node_type === BlockEnum.Iteration) {
|
if (node.node_type === BlockEnum.Iteration) {
|
||||||
parallel_id = node.parallel_id ?? null
|
parallel_id = node.parallel_id ?? null
|
||||||
parallel_start_node_id = node.parallel_start_node_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({
|
rootNodes.push({
|
||||||
id: node.id,
|
id: node.id,
|
||||||
isParallel: false,
|
isParallel: false,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user