Show related apps on video listings

This commit is contained in:
Sam Carlton 2022-06-09 14:49:59 -05:00
parent 73cf071d21
commit 2fbd5d0f1c
2 changed files with 18 additions and 3 deletions

View file

@ -128,7 +128,7 @@ export class ListingDetails {
}
get hasRelatedApps () {
return false
return Array.isArray( this.api.appLinks ) && this.api.appLinks.length > 0
}
get hasBenchmarksPage () {
@ -143,7 +143,7 @@ export class ListingDetails {
get initialVideo () {
if ( this.type === 'video' ) {
return this.api.video
return this.api
}
if ( this.hasRelatedVideos ) {