From ece56bc556a601463230455b15a260d1bd53be0b Mon Sep 17 00:00:00 2001 From: Alexander Wang Date: Wed, 10 May 2023 20:25:40 -0700 Subject: [PATCH] [ci-force] small fix --- d2oracle/get.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/d2oracle/get.go b/d2oracle/get.go index 69820e5a7..c20f1f892 100644 --- a/d2oracle/get.go +++ b/d2oracle/get.go @@ -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) }