diff --git a/src/components/listing-parts/related-videos.astro b/src/components/listing-parts/related-videos.astro index dd83478..6fbc9e2 100644 --- a/src/components/listing-parts/related-videos.astro +++ b/src/components/listing-parts/related-videos.astro @@ -6,7 +6,7 @@ const { listing } = Astro.props -const hasRelatedVideos = listing.relatedVideos.length > 0 +const hasRelatedVideos = Array.isArray( listing.relatedVideos ) && listing.relatedVideos.length > 0 --- { hasRelatedVideos && (