From d1c835485982650dfa4a9c6b51142ab9660584d4 Mon Sep 17 00:00:00 2001 From: Oliver Date: Mon, 26 Aug 2024 15:18:46 +1000 Subject: [PATCH] Reset page offset when changing page size (#7994) - Prevents table rendering an "empty" page --- src/frontend/src/tables/InvenTreeTable.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/frontend/src/tables/InvenTreeTable.tsx b/src/frontend/src/tables/InvenTreeTable.tsx index fa74a5f468..c5164e1946 100644 --- a/src/frontend/src/tables/InvenTreeTable.tsx +++ b/src/frontend/src/tables/InvenTreeTable.tsx @@ -590,6 +590,7 @@ export function InvenTreeTable({ // pagination refresth table if pageSize changes function updatePageSize(newData: number) { tableState.setPageSize(newData); + tableState.setPage(1); tableState.refreshTable(); }