fix: make the End node always nested in the root

This commit is contained in:
Yi 2024-08-30 20:14:56 +08:00
parent d7c0ca852e
commit ee1587c939

View File

@ -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,