Merge branch 'bugfix/warehouse-e-shop-order-exoprt' into 'master'

fixed page 0 on client side rendered tables

See merge request fronk/thetool!602
This commit is contained in:
Luca Haid
2024-08-21 06:18:16 +00:00

View File

@@ -340,7 +340,7 @@ Vue.component('tt-table', {
}
this.pagination = {
page: page++,
page: Math.max(page, 1),
per_page: this.pagination?.per_page ? parseInt(this.pagination.per_page) : 10,
total_rows: this.rawRows.length || 0,
total_pages: this.rawRows.length / this.pagination?.per_page,