[ci-force] small fix
This commit is contained in:
parent
9664fd6b7d
commit
ece56bc556
1 changed files with 3 additions and 1 deletions
|
|
@ -59,7 +59,9 @@ func GetObjOrder(g *d2graph.Graph) []string {
|
|||
for len(queue) > 0 {
|
||||
curr := queue[0]
|
||||
queue = queue[1:]
|
||||
order = append(order, curr.AbsID())
|
||||
if curr != g.Root {
|
||||
order = append(order, curr.AbsID())
|
||||
}
|
||||
for _, ch := range curr.ChildrenArray {
|
||||
queue = append(queue, ch)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue