Skip to content

Commit b8693c4

Browse files
committed
Fix canNext off by one error
1 parent 81e7358 commit b8693c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FeathersVuexPagination.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export default {
6767
return currentPage.value - 1 > 0
6868
})
6969
const canNext = computed(() => {
70-
return currentPage.value + 1 < pageCount.value
70+
return currentPage.value < pageCount.value
7171
})
7272

7373
function toStart(): void {

0 commit comments

Comments
 (0)