fix: Space item duplicate key (#22745)

This commit is contained in:
骗你是小猫咪 2020-03-30 17:59:06 +08:00 committed by GitHub
parent 40eae38563
commit 0f2f270f35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,7 +47,8 @@ const Space: React.FC<SpaceProps> = props => {
{items.map((child, i) => (
<div
className={itemClassName}
key={`${itemClassName}-i`}
// eslint-disable-next-line react/no-array-index-key
key={`${itemClassName}-${i}`}
style={
i === len - 1
? {}