-
Notifications
You must be signed in to change notification settings - Fork 231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Node id 0 not set properly #160
Comments
Hey thanks for reporting, this is actually a bug, the problem is that react-d3-graph is currently supporting both data types as ids (not the best decision IMHO) you can have the type |
Thanks for getting back to me. I'll definitely switch to strings in the meantime. |
This was fixed with #161 |
It seems that if a node id is 0, then any links that should point to 0 instead point to an [Object object].
Here's a minimal example
and the resulting graph is shown below. It looks like one end of the link is never updated, even though the location of the 0 node is updated.
By changing the first node to have id 999, the graph renders correctly.
I'm new to react and javascript, so this might be a user error.
The text was updated successfully, but these errors were encountered: