Fix error on no related apps or videos

This commit is contained in:
Sam Carlton 2020-12-27 08:57:51 -06:00
parent f2a05613f4
commit f56dbd7692

View file

@ -20,7 +20,10 @@
<hr class="w-full" > <hr class="w-full" >
<div class="related-apps w-full"> <div
v-if="featuredApps.length !== 0"
class="related-apps w-full"
>
<h2 class="subtitle text-xl md:text-2xl font-bold mb-3"> <h2 class="subtitle text-xl md:text-2xl font-bold mb-3">
Related Apps Related Apps
</h2> </h2>
@ -99,7 +102,8 @@ export default {
return { return {
video, video,
featuredApps, featuredApps,
relatedVideos // If no related video found just get the 12 newest ones
relatedVideos: (relatedVideos.length !== 0) ? relatedVideos : videoList.slice(0, 12)
} }
}, },
computed: { computed: {