mirror of https://github.com/fantasticit/think.git
fix: fix duplicate key
This commit is contained in:
parent
c1a98b0639
commit
2b224b1246
|
@ -27,7 +27,7 @@ const CommentInner = ({ data, depth, replyComment, editComment, deleteComment })
|
|||
></CommentItem>
|
||||
{hasChildren ? (
|
||||
<CommentInner
|
||||
key={'comment-inner' + depth}
|
||||
key={'comment-inner' + item.id + depth}
|
||||
data={item.children}
|
||||
depth={depth + 1}
|
||||
replyComment={replyComment}
|
||||
|
|
Loading…
Reference in New Issue