From 96a57b805d06127391534b1c47a355f52eb1e583 Mon Sep 17 00:00:00 2001 From: Kavin <20838718+FireMasterK@users.noreply.github.com> Date: Fri, 5 May 2023 00:41:59 +0100 Subject: [PATCH] Add check to ensure videos are present before fetching more items. --- src/components/FeedPage.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/FeedPage.vue b/src/components/FeedPage.vue index 67043648..45f5decf 100644 --- a/src/components/FeedPage.vue +++ b/src/components/FeedPage.vue @@ -115,7 +115,7 @@ export default { if (window.innerHeight + window.scrollY >= document.body.offsetHeight - window.innerHeight) { if (this.loading) return; if (this.videos == null) return; - if (this.videosCount % 100 != 0) return; + if (this.videosCount > 0 && this.videosCount % 100 != 0) return; this.loading = true; this.loadMoreVideos();