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: If a chart is deleted, It should be redirected to the dashboard #10951

Conversation

anshul45
Copy link
Contributor

Closes: (#10819)

Description:

If we are editing chats from any dashboard, the history will include parameters like fromDashboard={dashboardId}. If we are editing chats from space, it will be null. I check if the search parameter is not null;
If it isn’t, I redirect to the dashboard, Otherwise I redirect to the home page.

https://www.loom.com/share/2c58db6dba4647deaf8bb95685f40b1e?sid=a5f8d6a7-6f18-4caa-8c97-f16d4a82391d

Reviewer actions

  • I have manually tested the changes in the preview environment
  • I have reviewed the code
  • I understand that "request changes" will block this PR from merging

Copy link

netlify bot commented Jul 31, 2024

👷 Deploy request for peaceful-bassi-cbf284 pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit d00f804

@owlas owlas changed the title fix: If a chat is deleted, It should be redirected to the dashboard fix: If a chart is deleted, It should be redirected to the dashboard Aug 2, 2024
@owlas owlas requested a review from IrakliJani August 2, 2024 11:11
@IrakliJani
Copy link
Contributor

tested here: #11084 works as expected. thanks for your contribution @anshul45 ! 🙌

@IrakliJani IrakliJani requested a review from rephus August 8, 2024 15:37
@IrakliJani IrakliJani merged commit 1c5c7a1 into lightdash:main Aug 8, 2024
6 checks passed
lightdash-bot pushed a commit that referenced this pull request Aug 8, 2024
## [0.1206.1](0.1206.0...0.1206.1) (2024-08-08)

### Bug Fixes

* If a chart is deleted, It should be redirected to the dashboard ([#10951](#10951)) ([1c5c7a1](1c5c7a1))
@lightdash-bot
Copy link
Collaborator

🎉 This PR is included in version 0.1206.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

4 participants