Skip to content

Commit 33dbc61

Browse files
authored
Fix the pagination when navigating to the previous and the next page (#1630)
1 parent 4f2c3ac commit 33dbc61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/js/screens/failedJobs/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@
165165
*/
166166
previous() {
167167
this.loadJobs(
168-
(this.page - 2) * this.perPage
168+
(this.page - 2) * this.perPage - 1
169169
);
170170
171171
this.page -= 1;
@@ -179,7 +179,7 @@
179179
*/
180180
next() {
181181
this.loadJobs(
182-
this.page * this.perPage
182+
this.page * this.perPage - 1
183183
);
184184
185185
this.page += 1;

0 commit comments

Comments
 (0)