diff --git a/src/components/card-item-list/card-list-item/card-list-item.tsx b/src/components/card-item-list/card-list-item/card-list-item.tsx index 97288eb628..0985da1a86 100644 --- a/src/components/card-item-list/card-list-item/card-list-item.tsx +++ b/src/components/card-item-list/card-list-item/card-list-item.tsx @@ -50,10 +50,7 @@ const CardListItem: React.FC = ({ titles: { full: fullTitle }, series, creators, - manifestations: { - all: manifestations, - bestRepresentation: { shelfmark } - }, + manifestations: { all: manifestations, bestRepresentation }, workId }, coverTint, @@ -79,7 +76,7 @@ const CardListItem: React.FC = ({ materialTypeFromFilters ); const languageIsoCode = getManifestationLanguageIsoCode(manifestations); - + const { shelfmark } = bestRepresentation; const { track } = useStatistics(); // We use hasBeenVisible to determine if the search result // is, or has been, visible in the viewport. @@ -163,7 +160,7 @@ const CardListItem: React.FC = ({ )} - {!materialIsFiction(item) && shelfmark && ( + {!materialIsFiction(bestRepresentation) && shelfmark && (