@tanstack/svelte-table 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.
@@ -1479,7 +1479,7 @@ const Pagination = {
1479
1479
  table.setPagination(old => {
1480
1480
  let pageIndex = functionalUpdate(updater, old.pageIndex);
1481
1481
  const maxPageIndex = typeof table.options.pageCount === 'undefined' || table.options.pageCount === -1 ? Number.MAX_SAFE_INTEGER : table.options.pageCount - 1;
1482
- pageIndex = Math.min(Math.max(0, pageIndex), maxPageIndex);
1482
+ pageIndex = Math.max(0, Math.min(pageIndex, maxPageIndex));
1483
1483
  return {
1484
1484
  ...old,
1485
1485
  pageIndex