Commit 5ea50a50 authored by Przemyslaw Kaminski's avatar Przemyslaw Kaminski

[graph] fix snapshot by adding empty children to node

parent 0bdb245a
......@@ -18,12 +18,13 @@ type GraphId = Int
newtype Node = Node {
attributes :: Cluster
, id_ :: String
, label :: String
, size :: Int
, type_ :: String
, x :: Number
, y :: Number
, children :: Array String
, id_ :: String
, label :: String
, size :: Int
, type_ :: String
, x :: Number
, y :: Number
}
x_coordP = SProxy :: SProxy "x_coord"
......
......@@ -15,6 +15,7 @@ stEdgeToGET { _original } = _original
stNodeToGET :: Record ST.Node -> GET.Node
stNodeToGET { id, label, x, y, _original: GET.Node { attributes, size, type_ } } = GET.Node {
attributes
, children: []
, id_: id
, label
, size
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment