mirror of https://github.com/fantasticit/think.git
fix: fix key
This commit is contained in:
parent
f819b61f03
commit
512018a1c0
|
@ -17,9 +17,8 @@ const CommentInner = ({ data, depth, replyComment, editComment, deleteComment })
|
|||
{(data || []).map((item) => {
|
||||
const hasChildren = item.children && item.children.length;
|
||||
return (
|
||||
<>
|
||||
<div key={item.id}>
|
||||
<CommentItem
|
||||
key={item.id}
|
||||
comment={item}
|
||||
replyComment={replyComment}
|
||||
editComment={editComment}
|
||||
|
@ -35,7 +34,7 @@ const CommentInner = ({ data, depth, replyComment, editComment, deleteComment })
|
|||
deleteComment={deleteComment}
|
||||
/>
|
||||
) : null}
|
||||
</>
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue