@tanstack/react-table 8.5.25 → 8.5.27

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.
@@ -865,12 +865,12 @@ const Expanding = {
865
865
  const includesString = (row, columnId, filterValue) => {
866
866
  var _row$getValue;
867
867
  const search = filterValue.toLowerCase();
868
- return (_row$getValue = row.getValue(columnId)) == null ? void 0 : _row$getValue.toLowerCase().includes(search);
868
+ return Boolean((_row$getValue = row.getValue(columnId)) == null ? void 0 : _row$getValue.toLowerCase().includes(search));
869
869
  };
870
870
  includesString.autoRemove = val => testFalsey(val);
871
871
  const includesStringSensitive = (row, columnId, filterValue) => {
872
872
  var _row$getValue2;
873
- return (_row$getValue2 = row.getValue(columnId)) == null ? void 0 : _row$getValue2.includes(filterValue);
873
+ return Boolean((_row$getValue2 = row.getValue(columnId)) == null ? void 0 : _row$getValue2.includes(filterValue));
874
874
  };
875
875
  includesStringSensitive.autoRemove = val => testFalsey(val);
876
876
  const equalsString = (row, columnId, filterValue) => {
@@ -3150,11 +3150,11 @@ function getSortedRowModel() {
3150
3150
 
3151
3151
  // If there are sub-rows, sort them
3152
3152
  sortedData.forEach(row => {
3153
+ var _row$subRows;
3153
3154
  sortedFlatRows.push(row);
3154
- if (!row.subRows || row.subRows.length <= 1) {
3155
- return;
3155
+ if ((_row$subRows = row.subRows) != null && _row$subRows.length) {
3156
+ row.subRows = sortData(row.subRows);
3156
3157
  }
3157
- row.subRows = sortData(row.subRows);
3158
3158
  });
3159
3159
  return sortedData;
3160
3160
  };