update: correctly overwrite nodes on re-parsing
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
+2
-2
@@ -85,8 +85,8 @@ export const parseNode = (node: Node, nodeExtent: CoordinateExtent, defaults?: P
|
|||||||
: defaults
|
: defaults
|
||||||
|
|
||||||
return {
|
return {
|
||||||
...node,
|
|
||||||
...(defaults as GraphNode),
|
...(defaults as GraphNode),
|
||||||
|
...node,
|
||||||
id: node.id.toString(),
|
id: node.id.toString(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -111,8 +111,8 @@ export const parseEdge = (edge: Edge, defaults?: Partial<GraphEdge>): GraphEdge
|
|||||||
: defaults
|
: defaults
|
||||||
|
|
||||||
return {
|
return {
|
||||||
...edge,
|
|
||||||
...(defaults as GraphEdge),
|
...(defaults as GraphEdge),
|
||||||
|
...edge,
|
||||||
id: edge.id.toString(),
|
id: edge.id.toString(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user