fixed pagination issue
This commit is contained in:
@@ -779,6 +779,9 @@ Vue.component('tt-table', {
|
||||
// Pagination and slice logic
|
||||
this.pagination.total_pages = Math.ceil(this.computedRows.length / this.pagination.per_page);
|
||||
this.pagination.filtered_available = this.computedRows.length;
|
||||
if (this.pagination.page > this.pagination.total_pages) {
|
||||
this.pagination.page = this.pagination.total_pages;
|
||||
}
|
||||
const perPage = this.pagination.per_page;
|
||||
const page = this.pagination.page;
|
||||
const startIndex = (page - 1) * perPage;
|
||||
|
||||
Reference in New Issue
Block a user