refactor(elements): cast source and target of edge to string

This commit is contained in:
moklick
2020-05-19 12:28:04 +02:00
parent 7b43f97884
commit 1ace58db4b

View File

@@ -82,6 +82,8 @@ export const parseElement = (element: Node | Edge): Node | Edge => {
if (isEdge(element)) {
return {
...element,
source: element.source.toString(),
target: element.target.toString(),
id: element.id.toString(),
type: element.type || 'default',
};