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>
|
></CommentItem>
|
||||||
{hasChildren ? (
|
{hasChildren ? (
|
||||||
<CommentInner
|
<CommentInner
|
||||||
key={'comment-inner' + depth}
|
key={'comment-inner' + item.id + depth}
|
||||||
data={item.children}
|
data={item.children}
|
||||||
depth={depth + 1}
|
depth={depth + 1}
|
||||||
replyComment={replyComment}
|
replyComment={replyComment}
|
||||||
|
|
Loading…
Reference in New Issue