Skip to content

Commit

Permalink
Pagination components get total count calculation modified
Browse files Browse the repository at this point in the history
  • Loading branch information
Jebasuthan committed Mar 2, 2023
1 parent 6a37138 commit 3f89955
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default {
console.log('response', response)
this.showLoader = false
this.listItems = response.data.data
this.totalPages = Math.floor(response.data.totalPassengers / this.recordsPerPage) // Calculate total records
this.totalPages = Math.ceil(response.data.totalPassengers / this.recordsPerPage) // Calculate total records
this.totalRecords = response.data.totalPassengers
})
},
Expand Down

0 comments on commit 3f89955

Please sign in to comment.