pr comment

This commit is contained in:
Júlio César Batista 2023-02-17 15:54:02 -03:00
parent a6533067ec
commit 1df56853b5
No known key found for this signature in database
GPG key ID: 10C4B861BF314878
2 changed files with 2 additions and 2 deletions

View file

@ -13,4 +13,4 @@
- Fixes rare compiler bug when using underscores in edges to create objects across containers. [#824](https://github.com/terrastruct/d2/pull/824)
- Fixes rare possibility of rendered connections being hidden or cut off. [#828](https://github.com/terrastruct/d2/pull/828)
- Creating nested children within `sql_table` and `class` shapes are now prevented (caused confusion when accidentally done). [#834](https://github.com/terrastruct/d2/pull/834)
- Fixes graph deserialization. [#837](https://github.com/terrastruct/d2/pull/837)
- Fixes graph deserialization bug. [#837](https://github.com/terrastruct/d2/pull/837)

View file

@ -49,7 +49,7 @@ func DeserializeGraph(bytes []byte, g *Graph) error {
for _, id := range so["ChildrenArray"].([]interface{}) {
o := idToObj[id.(string)]
childrenArray = append(childrenArray, o)
children[strings.ToLower(o.IDVal)] = o
children[strings.ToLower(o.ID)] = o
o.Parent = idToObj[so["AbsID"].(string)]
}