@tanstack/table-core 8.5.24 → 8.5.26

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.
@@ -858,12 +858,12 @@
858
858
  const includesString = (row, columnId, filterValue) => {
859
859
  var _row$getValue;
860
860
  const search = filterValue.toLowerCase();
861
- return (_row$getValue = row.getValue(columnId)) == null ? void 0 : _row$getValue.toLowerCase().includes(search);
861
+ return Boolean((_row$getValue = row.getValue(columnId)) == null ? void 0 : _row$getValue.toLowerCase().includes(search));
862
862
  };
863
863
  includesString.autoRemove = val => testFalsey(val);
864
864
  const includesStringSensitive = (row, columnId, filterValue) => {
865
865
  var _row$getValue2;
866
- return (_row$getValue2 = row.getValue(columnId)) == null ? void 0 : _row$getValue2.includes(filterValue);
866
+ return Boolean((_row$getValue2 = row.getValue(columnId)) == null ? void 0 : _row$getValue2.includes(filterValue));
867
867
  };
868
868
  includesStringSensitive.autoRemove = val => testFalsey(val);
869
869
  const equalsString = (row, columnId, filterValue) => {
@@ -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.min(Math.max(0, pageIndex), maxPageIndex);
1474
+ pageIndex = Math.max(0, Math.min(pageIndex, maxPageIndex));
1475
1475
  return {
1476
1476
  ...old,
1477
1477
  pageIndex