-
Notifications
You must be signed in to change notification settings - Fork 14k
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: Make sure the DeprecatedSelect label is always a string #23758
fix: Make sure the DeprecatedSelect label is always a string #23758
Conversation
superset-frontend/src/components/DeprecatedSelect/DeprecatedSelect.tsx
Outdated
Show resolved
Hide resolved
superset-frontend/src/components/DeprecatedSelect/DeprecatedSelect.tsx
Outdated
Show resolved
Hide resolved
Co-authored-by: JUST.in DO IT <justin.park@airbnb.com>
Codecov Report
@@ Coverage Diff @@
## master #23758 +/- ##
==========================================
- Coverage 68.11% 68.08% -0.03%
==========================================
Files 1922 1923 +1
Lines 74102 74141 +39
Branches 8100 8103 +3
==========================================
+ Hits 50474 50481 +7
- Misses 21550 21581 +31
- Partials 2078 2079 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 1 file with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…23758) Co-authored-by: JUST.in DO IT <justin.park@airbnb.com>
SUMMARY
The
options
property of theDeprecatedSelect
has its type defined fromOptionType
which extendsOptionTypeBase
and allowsany
values. Because of that, this PR adds an explicit string conversion when processing thelabel
property to make sure it's a text and prevent rendering exceptions. One example of the necessary conversion is when the options haveBigNumber
as labels.ADDITIONAL INFORMATION