d2graph: Actually remove board keyword check
d2ir change alone is enough.
This commit is contained in:
parent
be09118633
commit
bc3942fa7e
1 changed files with 0 additions and 10 deletions
|
|
@ -575,16 +575,6 @@ func (obj *Object) EnsureChildIDVal(ids []string) *Object {
|
|||
id := ids[0]
|
||||
ids = ids[1:]
|
||||
|
||||
// Any IDA with layers.layer or whatever is an IR IDA.
|
||||
// Such IDA's are resolved from our board root.
|
||||
// See https://github.com/terrastruct/d2/pull/876
|
||||
if _, ok := BoardKeywords[id]; ok {
|
||||
if len(ids) == 0 {
|
||||
return nil
|
||||
}
|
||||
return obj.EnsureChildIDVal(ids[1:])
|
||||
}
|
||||
|
||||
var child *Object
|
||||
for _, ch2 := range obj.ChildrenArray {
|
||||
if ch2.IDVal == id {
|
||||
|
|
|
|||
Loading…
Reference in a new issue