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: Avatar.Group key lost #26098
fix: Avatar.Group key lost #26098
Conversation
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 32a57b4:
|
Size Change: +56 B (0%) Total Size: 799 kB
ℹ️ View Unchanged
|
Codecov Report
@@ Coverage Diff @@
## master #26098 +/- ##
=======================================
Coverage 99.56% 99.56%
=======================================
Files 373 373
Lines 7315 7316 +1
Branches 2044 2042 -2
=======================================
+ Hits 7283 7284 +1
Misses 32 32
Continue to review full report at Codecov.
|
key: `avatar-key-${index}`, | ||
}); | ||
}); | ||
|
||
const numOfChildren = childrenWithProps.length; | ||
if (maxCount && maxCount < numOfChildren) { |
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.
没进 if 的时候直接用 children 就可以了吧?没必要 toArray 一下。
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
fix #26087
💡 Background and solution
📝 Changelog
key
of Avatar.Group.key
缺失的问题。☑️ Self Check before Merge