Skip to content

fix(site): gracefully handle reselection of the same preset #17014

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

Merged
merged 4 commits into from
Mar 20, 2025

Conversation

SasSwart
Copy link
Contributor

This PR closes #16953.

Reselecting a preset that was already the selected preset returned an undefined option to the onSelect function. We then tried to read an attribute of this undefined value. With this fix, we handle the undefined option correctly.

@SasSwart SasSwart requested a review from BrunoQuaresma March 20, 2025 07:07
@mtojek
Copy link
Member

mtojek commented Mar 20, 2025

@SasSwart Is it still draft or should we review this?

@SasSwart SasSwart marked this pull request as ready for review March 20, 2025 07:28
@SasSwart
Copy link
Contributor Author

Just pushed one last commit to fix storybook CI. Ready for review now.

Copy link
Member

@mtojek mtojek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ship it!

@SasSwart SasSwart enabled auto-merge (squash) March 20, 2025 07:38
@SasSwart SasSwart merged commit 38b21ab into main Mar 20, 2025
30 checks passed
@SasSwart SasSwart deleted the jjs/preset-reselection branch March 20, 2025 07:42
@github-actions github-actions bot locked and limited conversation to collaborators Mar 20, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants