Skip to content

Commit

Permalink
πŸ› Add check for thumbnail #2807
Browse files Browse the repository at this point in the history
  • Loading branch information
millianapia committed Feb 4, 2025
1 parent b9de34d commit 6ab937f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/pageComponents/shared/VideoPlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export const VideoJsComponent = ({
className="object-cover"
src={video.url}
title={video.title}
poster={urlFor(video.thumbnail).width(w).height(h).url()}
poster={video.thumbnail && urlFor(video.thumbnail).width(w).height(h).url()}
playsInline
aspectRatio={designOptions.aspectRatio}
useBrandTheme={designOptions?.useBrandTheme}
Expand Down

0 comments on commit 6ab937f

Please sign in to comment.