Skip to content

Commit

Permalink
Add check to ensure videos are present before fetching more items.
Browse files Browse the repository at this point in the history
  • Loading branch information
FireMasterK committed May 4, 2023
1 parent d320cca commit 96a57b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/FeedPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 96a57b8

Please sign in to comment.