d2compiler: Fix sequence-timestamp test

This commit is contained in:
Anmol Sethi 2023-02-22 16:07:24 -08:00
parent 389f4cb9d3
commit f0eba7dda7
No known key found for this signature in database
GPG key ID: 25BC68888A99A8BA

View file

@ -427,7 +427,7 @@ func (c *compiler) compileEdge(obj *d2graph.Object, e *d2ir.Edge) {
edge.Attributes.Label.MapKey = e.LastPrimaryKey()
for _, er := range e.References {
scopeObjIDA := d2ir.IDA(er.Context.ScopeMap)
scopeObj, _ := edge.Src.Graph.Root.HasChildIDVal(d2graphIDA(scopeObjIDA))
scopeObj, _ := edge.Src.Graph.Root.HasChildIDVal(scopeObjIDA)
edge.References = append(edge.References, d2graph.EdgeReference{
Edge: er.Context.Edge,
MapKey: er.Context.Key,