Skip to content

Commit

Permalink
fix: picture entry preview in Grid view (#658)
Browse files Browse the repository at this point in the history
Co-authored-by: cesaryuan <cesaryuan@gmail.com>
  • Loading branch information
cesaryuan and forcesar authored Sep 27, 2024
1 parent ab8c9e5 commit 634978f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function PictureItem({ entryId, entryPreview, translation }: UniversalIte
const isActive = useRouteParamsSelector(({ entryId }) => entryId === entry?.entries.id)

const { t } = useTranslation()
const previewMedia = usePreviewMedia()
const previewMedia = usePreviewMedia(entryId)
if (!entry) return <ReactVirtuosoItemPlaceholder />
return (
<GridItem entryId={entryId} entryPreview={entryPreview} translation={translation}>
Expand Down

0 comments on commit 634978f

Please sign in to comment.