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 issue with importing new dashboard JSON files/creating new dashboards #5820

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

abhi12299
Copy link
Contributor

@abhi12299 abhi12299 commented Sep 1, 2024

Summary

Fixes react-grid-layout error when importing dashboard via JSON files or creating brand new dashboards.

Describing the issue

From the docs of react-grid-layout on npm, we either need to pass the layout prop directly to the GridLayout component or set the data-grid attribute to each child of the grid. The issue was caused by setting both the props in the GridCardLayout.tsx component.

You can reproduce the issue by setting up a fresh installation of signoz and then trying to create a new dashboard.

Issue:
issue_on_import.mov
issue_on_create.mov
Behaviour after fix:
fix.mov

Affected Areas and Manually Tested Areas

Dashboard layout component affected.

Copy link

welcome bot commented Sep 1, 2024

Welcome to the SigNoz community! Thank you for your first pull request and making this project better. 🤗

@CLAassistant
Copy link

CLAassistant commented Sep 1, 2024

CLA assistant check
All committers have signed the CLA.

@abhi12299
Copy link
Contributor Author

@YounixM please review

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.

2 participants