-
Notifications
You must be signed in to change notification settings - Fork 1.5k
getEdgeData array[connId] is undefined #2938
Comments
Reproducing this with
I believe this is the same error as reported with a different text. Location in code, in
|
What I notice, is that on export, the node id's get renumbered. When I delete node 1, the following is exported:
I note that @kowdykung, are you sure that your example JSON file is as how it was exported? In any case, this is the problem; the node id's are renumbered on export, but the id's in the connections aren't. The source of the problem can be traced to the following two items: 1. Only position information is used on export:
2. The node index is used to set the exported node id's:
I conclude that issue is in the |
I figured it out. This will require a PR to fix fully. For your personal case, assuming you're using code from the
(I'm truly sorry that I can not make it simpler than this) |
This issue has been fixed in |
I am working on
saveAndLoad
andmanipulation
exampleI got this network which load form JSON.
I deleted node 1 and its edge, then I export to JSON file. I got the correct JSON file.
When I want to load this JSON back but it's got an error on import JSON in
function getEdgeData
I don't know why this function error as I see it should be correct because of JSON is correct.
The text was updated successfully, but these errors were encountered: