Skip to content

Commit cb78b41

Browse files
committed
pagination total count off by 1 - fixed
1 parent e146918 commit cb78b41

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

components/BaelFooter.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export default {
118118
return this.$store.state.resultsnum
119119
120120
} else {
121-
return tp
121+
return tp + 1
122122
123123
}
124124
},

components/FullGrid.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export default {
123123
124124
offset() {
125125
if (this.queryParam > 1) {
126-
return Number(this.queryParam - 1) * 11;
126+
return Number(this.queryParam - 1) * 12;
127127
} else {
128128
return 0;
129129
}

store/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,12 @@ const createStore = () =>
6262

6363
},
6464
setGridNumPosts({ state, commit }) {
65-
if (state.blogPosts > 13) {
65+
if (state.blogPosts > 12) {
6666
this.$store.commit("SET_GRIDNUMPOSTS", 12);
6767
}
6868
},
6969
setGridNumCats({ state, commit }) {
70-
if (state.allCats > 13) {
70+
if (state.allCats > 12) {
7171
this.$store.commit("SET_GRIDNUMCATS", 12);
7272
}
7373
},

0 commit comments

Comments
 (0)