pass props.key

This commit is contained in:
srgooglo 2022-06-03 06:25:50 +02:00
parent b4b2094253
commit d47f07fe8b

View File

@ -282,7 +282,7 @@ export const PostCard = React.memo(({ selfId, data = {}, events = {} }) => {
}
return <div
key={data._id}
key={data.key ?? data._id}
id={data._id}
className={classnames("postCard", { ["liked"]: hasLiked })}
>