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

Dashboard bug #60

Open
Corginyan opened this issue Feb 22, 2025 · 0 comments
Open

Dashboard bug #60

Corginyan opened this issue Feb 22, 2025 · 0 comments

Comments

@Corginyan
Copy link

I noticed a bug when switching dashboards. Sometimes the dashboard is displayed empty. I investigated the source code a bit and found an interesting place in the Dashboard component. Most likely, a race starts here and sometimes the response from the api with empty data comes later than the data of the selected dashboard. If you do

setElements({});
setElements2([]);
setPathes([]);

instead of requesting the api for an empty dashboard, it seems to solve the problem.

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

No branches or pull requests

1 participant