mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Fix error on no related apps or videos
This commit is contained in:
parent
f2a05613f4
commit
f56dbd7692
1 changed files with 6 additions and 2 deletions
|
|
@ -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: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue