mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 18:44:16 +00:00
pass props.key
This commit is contained in:
parent
eecf8917a9
commit
eb9855c827
@ -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 })}
|
||||
>
|
||||
|
Loading…
x
Reference in New Issue
Block a user