pass props.key

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

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