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

throw error when node hover and setGraph #1486

Open
wszgrcy opened this issue Nov 9, 2024 · 0 comments
Open

throw error when node hover and setGraph #1486

wszgrcy opened this issue Nov 9, 2024 · 0 comments
Labels

Comments

@wszgrcy
Copy link

wszgrcy commented Nov 9, 2024

Sigma.js version: 3.0.0-beta.36
Graphology version: 0.25.4
Operating System: windows 10
Web browser: chrome 124

Steps to reproduce

When I move the mouse over a node, or when the hover state of the node is not cancelled Using setGraph will throw an exception

Expected behavior

worked

Actual behavior

throw error

Note

error position

if (this.hoveredNode && !this.nodeDataCache[this.hoveredNode].hidden) {

image
I think after setGraph, we should first clear the value of hoveredNode, so that it will work properly
or this.nodeDataCache[this.hoveredNode]?.hidden add ?

@wszgrcy wszgrcy added the bug label Nov 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant