From 3f8995586e632ffe999174cf2dc4d09fcc16571a Mon Sep 17 00:00:00 2001 From: Jeba Suthan Date: Thu, 2 Mar 2023 11:16:34 -0600 Subject: [PATCH] Pagination components get total count calculation modified --- src/App.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.vue b/src/App.vue index 278a03b..75ef224 100644 --- a/src/App.vue +++ b/src/App.vue @@ -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 }) },