Skip to content

Commit

Permalink
fix: missing .value access
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAkbal committed Mar 11, 2024
1 parent f2efae9 commit 04eb5a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pages/posts/[domain].vue
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@
// AND there is a next page
// AND it's not fetching
// THEN load next page
if (lastItem.index >= allRows.value.length - 1 && hasNextPage && !isFetchingNextPage.value) {
if (lastItem.index >= allRows.value.length - 1 && hasNextPage.value && !isFetchingNextPage.value) {
onLoadNextPostPage()
}
})
Expand Down
2 changes: 1 addition & 1 deletion pages/premium/saved-posts/[domain].vue
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@
// AND there is a next page
// AND it's not fetching
// THEN load next page
if (lastItem.index >= allRows.value.length - 1 && hasNextPage && !isFetchingNextPage.value) {
if (lastItem.index >= allRows.value.length - 1 && hasNextPage.value && !isFetchingNextPage.value) {
onLoadNextPostPage()
}
})
Expand Down

0 comments on commit 04eb5a6

Please sign in to comment.