mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-02 05:26:45 +00:00
Reset page offset when changing page size (#7994)
- Prevents table rendering an "empty" page
This commit is contained in:
parent
881220cdb3
commit
d1c8354859
@ -590,6 +590,7 @@ export function InvenTreeTable<T = any>({
|
||||
// pagination refresth table if pageSize changes
|
||||
function updatePageSize(newData: number) {
|
||||
tableState.setPageSize(newData);
|
||||
tableState.setPage(1);
|
||||
tableState.refreshTable();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user