Skip to content

Commit

Permalink
PostDisplayに渡すキーをユニークな値にした。
Browse files Browse the repository at this point in the history
  • Loading branch information
eigoninaritai-naokichi committed Jan 12, 2024
1 parent c05eb46 commit e213916
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/routes/app._index/components/latest-post-time-line.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ export default function LatestPostTimeLine({
}) {
return (
<div>
{postContents.map((postContent, index) => {
{postContents.map((postContent) => {
return (
<PostDisplay key={index} postContent={postContent} />
<PostDisplay key={postContent.id} postContent={postContent} />
);
})}
</div>
Expand Down

0 comments on commit e213916

Please sign in to comment.