refactor(elements): cast source and target of edge to string
This commit is contained in:
@@ -82,6 +82,8 @@ export const parseElement = (element: Node | Edge): Node | Edge => {
|
|||||||
if (isEdge(element)) {
|
if (isEdge(element)) {
|
||||||
return {
|
return {
|
||||||
...element,
|
...element,
|
||||||
|
source: element.source.toString(),
|
||||||
|
target: element.target.toString(),
|
||||||
id: element.id.toString(),
|
id: element.id.toString(),
|
||||||
type: element.type || 'default',
|
type: element.type || 'default',
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user