fix: fix duplicate key

This commit is contained in:
fantasticit 2022-03-31 23:05:02 +08:00
parent c1a98b0639
commit 2b224b1246
1 changed files with 1 additions and 1 deletions

View File

@ -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}