-
-
Notifications
You must be signed in to change notification settings - Fork 478
fix: 兼容 labelInValue 时 value 为 null 引起的报错 #590
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
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/react-component/select/3tgd7tsye |
Codecov Report
@@ Coverage Diff @@
## master #590 +/- ##
=======================================
Coverage 99.27% 99.27%
=======================================
Files 20 20
Lines 967 971 +4
Branches 322 324 +2
=======================================
+ Hits 960 964 +4
Misses 6 6
Partials 1 1
Continue to review full report at Codecov.
|
return finalVal; | ||
}); | ||
rawValues = (values as LabelValueType[]) | ||
.filter(item => !!item) |
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.
加个用例?
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.
加过啦 ~~
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.
~ 这个能合么
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.
value 为 0 时,也被 filter 了
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.
@Dolov 再来个 PR
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.
value 为 0 时,也被 filter 了
labelInValue 模式下,需要支持这种非法数据格式么
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.
有 ts 定义,先不加了
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.
使用js的项目呢?
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.
😂😂😂 对,忘了 还有 js
No description provided.