diff --git a/d2ast/d2ast.go b/d2ast/d2ast.go index 3398bda54..a5be3fa98 100644 --- a/d2ast/d2ast.go +++ b/d2ast/d2ast.go @@ -795,7 +795,7 @@ func (mb MapNodeBox) Unbox() MapNode { } func (mb MapNodeBox) IsBoardNode() bool { - if mb.MapKey == nil || mb.MapKey.Key == nil || len(mb.MapKey.Key.Path) == 0 { + if mb.MapKey == nil || mb.MapKey.Key == nil || len(mb.MapKey.Key.Path) != 1 { return false } switch mb.MapKey.Key.Path[0].Unbox().ScalarString() {