mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Check if listing.relatedVideos is Array
This commit is contained in:
parent
0ebb746ad9
commit
e054b29d64
1 changed files with 1 additions and 1 deletions
|
|
@ -6,7 +6,7 @@ const {
|
||||||
listing
|
listing
|
||||||
} = Astro.props
|
} = Astro.props
|
||||||
|
|
||||||
const hasRelatedVideos = listing.relatedVideos.length > 0
|
const hasRelatedVideos = Array.isArray( listing.relatedVideos ) && listing.relatedVideos.length > 0
|
||||||
|
|
||||||
---
|
---
|
||||||
{ hasRelatedVideos && (
|
{ hasRelatedVideos && (
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue