Skip to content

Commit 9093409

Browse files
committed
fix pagination currentPage should be 0 if no pages
1 parent 6434679 commit 9093409

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
@@ -56,7 +56,7 @@ export default {
5656
get() {
5757
const params = props.value
5858
if (params) {
59-
return params.$skip / params.$limit + 1
59+
return pageCount.value === 0 ? 0 : params.$skip / params.$limit + 1
6060
} else {
6161
return 1
6262
}

0 commit comments

Comments
 (0)