Skip to content

Commit 96a57b8

Browse files
committed
Add check to ensure videos are present before fetching more items.
1 parent d320cca commit 96a57b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/FeedPage.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export default {
115115
if (window.innerHeight + window.scrollY >= document.body.offsetHeight - window.innerHeight) {
116116
if (this.loading) return;
117117
if (this.videos == null) return;
118-
if (this.videosCount % 100 != 0) return;
118+
if (this.videosCount > 0 && this.videosCount % 100 != 0) return;
119119
120120
this.loading = true;
121121
this.loadMoreVideos();

0 commit comments

Comments
 (0)