Skip to content
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

Clear out clickedNode reference on data load #179

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

meshulam
Copy link

I ran into an issue when reloading the data in a TreeMap. If I clicked on a node to set a new root, and then reloaded the data, compute() would try to set the root to the old value of this.clickedNode, resulting in an error and failure to redraw the graph.

This PR fixes the issue by clearing out the reference to clickedNode when loading data. The side effect is that reloading data and refreshing the plot will always bring you back to the root node, even if there's a new node with the same ID in the updated data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant