-
Notifications
You must be signed in to change notification settings - Fork 185
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(SubnavigationBar): ignore falsy children #6442
Conversation
size-limit report 📦
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 79aa726:
|
e2e tests |
👀 Docs deployed
Commit 79aa726 |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #6442 +/- ##
==========================================
+ Coverage 81.98% 82.00% +0.02%
==========================================
Files 327 327
Lines 10135 10149 +14
Branches 3412 3418 +6
==========================================
+ Hits 8309 8323 +14
Misses 1826 1826
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
packages/vkui/src/components/SubnavigationBar/SubnavigationBar.tsx
Outdated
Show resolved
Hide resolved
* fix(SubnavigationBar): ignore falsy children * Fix review notes
Изменения
Используем
hasReactNode(child)
, чтобы отфильтровать все пустые ноды