@tanstack/table-core 8.5.24 → 8.5.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/features/Pagination.js +1 -1
- package/build/cjs/features/Pagination.js.map +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +310 -310
- package/build/umd/index.development.js +1 -1
- package/build/umd/index.development.js.map +1 -1
- package/build/umd/index.production.js +1 -1
- package/build/umd/index.production.js.map +1 -1
- package/package.json +1 -1
- package/src/features/Pagination.ts +1 -1
|
@@ -1471,7 +1471,7 @@
|
|
|
1471
1471
|
table.setPagination(old => {
|
|
1472
1472
|
let pageIndex = functionalUpdate(updater, old.pageIndex);
|
|
1473
1473
|
const maxPageIndex = typeof table.options.pageCount === 'undefined' || table.options.pageCount === -1 ? Number.MAX_SAFE_INTEGER : table.options.pageCount - 1;
|
|
1474
|
-
pageIndex = Math.
|
|
1474
|
+
pageIndex = Math.max(0, Math.min(pageIndex, maxPageIndex));
|
|
1475
1475
|
return {
|
|
1476
1476
|
...old,
|
|
1477
1477
|
pageIndex
|