From 4221eb7f456672a9b621d34e72970957dbdec79a Mon Sep 17 00:00:00 2001 From: Luca Haid Date: Wed, 21 Aug 2024 09:18:02 +0200 Subject: [PATCH] fixed page 0 on client side rendered tables --- public/plugins/vue/tt-components/tt-table.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/plugins/vue/tt-components/tt-table.js b/public/plugins/vue/tt-components/tt-table.js index 1834e2b31..31002b575 100644 --- a/public/plugins/vue/tt-components/tt-table.js +++ b/public/plugins/vue/tt-components/tt-table.js @@ -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,