Skip to content

Commit

Permalink
Fix the pagination when navigating to the previous and the next page (#…
Browse files Browse the repository at this point in the history
…1366)

Co-authored-by: kirba <[email protected]>
  • Loading branch information
kirba and kirba authored Jan 15, 2024
1 parent 8b76994 commit ec5510f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/js/screens/recentJobs/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
*/
previous() {
this.loadJobs(
(this.page - 2) * this.perPage
(this.page - 2) * this.perPage - 1
);
this.page -= 1;
Expand All @@ -123,7 +123,7 @@
*/
next() {
this.loadJobs(
this.page * this.perPage
this.page * this.perPage - 1
);
this.page += 1;
Expand Down

0 comments on commit ec5510f

Please sign in to comment.