Skip to content

Commit

Permalink
chore: swap id to use title + category
Browse files Browse the repository at this point in the history
  • Loading branch information
seaerchin committed Dec 18, 2024
1 parent 54ef170 commit 011a203
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,15 @@ export const CollectionResults = ({
paginatedItems.map((item) =>
variant === "collection" ? (
<CollectionCard
key={Math.random()}
key={`${item.title}-${item.category}`}
{...item}
shouldShowDate={shouldShowDate}
siteAssetsBaseUrl={siteAssetsBaseUrl}
LinkComponent={LinkComponent}
/>
) : (
<BlogCard
key={Math.random()}
key={`${item.title}-${item.category}`}
{...item}
shouldShowDate={shouldShowDate}
siteAssetsBaseUrl={siteAssetsBaseUrl}
Expand Down

0 comments on commit 011a203

Please sign in to comment.