fix
This commit is contained in:
parent
e83cf8d157
commit
f5e9114786
1 changed files with 1 additions and 2 deletions
|
|
@ -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, "scenarios")
|
||||
c.compileBoardsField(g, ir, "steps")
|
||||
|
||||
if d2ir.ParentMap(ir).CopyBase(nil).Equal(ir.CopyBase(nil)) {
|
||||
if len(g.Layers) > 0 || len(g.Scenarios) > 0 || len(g.Steps) > 0 {
|
||||
g.IsFolderOnly = true
|
||||
|
|
@ -719,7 +718,7 @@ func (c *compiler) validateNear(g *d2graph.Graph) {
|
|||
|
||||
func (c *compiler) validateBoardLink(g *d2graph.Graph, ir *d2ir.Map) {
|
||||
for _, obj := range g.Objects {
|
||||
if obj.Attributes.Link.Value == "" {
|
||||
if obj.Attributes.Link == nil {
|
||||
continue
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue