fix root serialization
This commit is contained in:
parent
51764057f1
commit
8105f02dc7
1 changed files with 4 additions and 4 deletions
|
|
@ -24,10 +24,10 @@ func DeserializeGraph(bytes []byte, g *Graph) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
g.Root = &Object{
|
var root Object
|
||||||
Graph: g,
|
convert(sg.Root, &root)
|
||||||
Children: make(map[string]*Object),
|
g.Root = &root
|
||||||
}
|
root.Graph = g
|
||||||
|
|
||||||
idToObj := make(map[string]*Object)
|
idToObj := make(map[string]*Object)
|
||||||
idToObj[""] = g.Root
|
idToObj[""] = g.Root
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue