From bc5efc5b8cae6fb76fa53b560d43238556e94e68 Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Thu, 9 Jun 2022 19:10:16 -0500 Subject: [PATCH] Enable related videos fo tv pages --- src/components/listing-parts/related-videos.astro | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 && ( )}