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