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 render error when removing a dashboard parameter #14999

Merged
merged 1 commit into from Mar 2, 2021

Conversation

daltojohnso
Copy link
Contributor

Description
When you click "Remove" to remove a dashboard parameter it causes an error in the render function of DashCardCardParameterWrapper component because we remove the parameter from state before closing the parameter-editing view code. This causes the app to break in dev but fortunately prod is more forgiving with regards to exceptions thrown during render calls. Dispatching an additional action to turn off this state fixes the issue.

Verification
This is what happened in dev before the change:
Screen Shot 2021-02-26 at 4 47 56 PM

@daltojohnso daltojohnso merged commit b0b6a16 into master Mar 2, 2021
@daltojohnso daltojohnso deleted the dj-dashboard-param-rmv branch March 2, 2021 01:28
@rlotun rlotun added this to the 0.39 milestone Mar 3, 2021
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.

None yet

3 participants