Skip to content

Commit

Permalink
Display doc.data.title instead of doc.title in collection cards
Browse files Browse the repository at this point in the history
  • Loading branch information
frederic-reis committed Jan 9, 2024
1 parent e972d13 commit 7a03f4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/CollectionCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const CollectionCard = ({ doc }) => (
</div>
</div>
<div>
{truncate(doc.title, TRUNCATE_OPTIONS)}
{truncate(doc.data.title, TRUNCATE_OPTIONS)}
{doc.data.index &&
<span> (p. {doc.data.index})</span>
}
Expand Down

0 comments on commit 7a03f4b

Please sign in to comment.