diff --git a/src/components/listing-parts/related-videos.astro b/src/components/listing-parts/related-videos.astro index 6fbc9e2..24fd5ab 100644 --- a/src/components/listing-parts/related-videos.astro +++ b/src/components/listing-parts/related-videos.astro @@ -1,4 +1,5 @@ --- +import { ensureListingDetails } from '~/helpers/listing-page.js' import Heading from './heading.astro' import VideoRow from '~/src/components/video/row.astro' @@ -6,17 +7,17 @@ const { listing } = Astro.props -const hasRelatedVideos = Array.isArray( listing.relatedVideos ) && listing.relatedVideos.length > 0 +const details = ensureListingDetails(listing) --- -{ hasRelatedVideos && ( +{ details.hasRelatedVideos && (
)}