This commit is contained in:
Alexander Wang 2023-02-28 14:30:25 -08:00
parent e83cf8d157
commit f5e9114786
No known key found for this signature in database
GPG key ID: D89FA31966BDBECE

View file

@ -71,7 +71,6 @@ func (c *compiler) compileBoard(g *d2graph.Graph, ir *d2ir.Map) *d2graph.Graph {
c.compileBoardsField(g, ir, "layers") c.compileBoardsField(g, ir, "layers")
c.compileBoardsField(g, ir, "scenarios") c.compileBoardsField(g, ir, "scenarios")
c.compileBoardsField(g, ir, "steps") c.compileBoardsField(g, ir, "steps")
if d2ir.ParentMap(ir).CopyBase(nil).Equal(ir.CopyBase(nil)) { if d2ir.ParentMap(ir).CopyBase(nil).Equal(ir.CopyBase(nil)) {
if len(g.Layers) > 0 || len(g.Scenarios) > 0 || len(g.Steps) > 0 { if len(g.Layers) > 0 || len(g.Scenarios) > 0 || len(g.Steps) > 0 {
g.IsFolderOnly = true g.IsFolderOnly = true
@ -719,7 +718,7 @@ func (c *compiler) validateNear(g *d2graph.Graph) {
func (c *compiler) validateBoardLink(g *d2graph.Graph, ir *d2ir.Map) { func (c *compiler) validateBoardLink(g *d2graph.Graph, ir *d2ir.Map) {
for _, obj := range g.Objects { for _, obj := range g.Objects {
if obj.Attributes.Link.Value == "" { if obj.Attributes.Link == nil {
continue continue
} }