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

fix: typecast error in dashboards.loadDashboardData #37

Open
paulo242 opened this issue Oct 31, 2024 · 0 comments
Open

fix: typecast error in dashboards.loadDashboardData #37

paulo242 opened this issue Oct 31, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@paulo242
Copy link

type 'double' is not a subtype of type 'int?' in type cast

When loading the dashboard from json, the fromMap of property gridBackgroundParams somethimes returns a type cast error when a double values is represented as an int in the json saved data.

Steps To Reproduce

  1. Add elements changing gridBackgroundParams properties
  2. Save a dashboard using toJson() or prettyJson()
  3. Load a dashboard using loadDashboardData

Expected Behavior

Dashboard saving data in a proper format or loading it as int or double?

@paulo242 paulo242 added the bug Something isn't working label Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant