@tanstack/react-table 8.0.0-beta.9 → 8.0.0

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.
@@ -1335,7 +1335,10 @@ function shouldAutoRemoveFilter(filterFn, value, column) {
1335
1335
  const sum = (columnId, _leafRows, childRows) => {
1336
1336
  // It's faster to just add the aggregations together instead of
1337
1337
  // process leaf nodes individually
1338
- return childRows.reduce((sum, next) => sum + (typeof next === 'number' ? next : 0), 0);
1338
+ return childRows.reduce((sum, next) => {
1339
+ const nextValue = next.getValue(columnId);
1340
+ return sum + (typeof nextValue === 'number' ? nextValue : 0);
1341
+ }, 0);
1339
1342
  };
1340
1343
 
1341
1344
  const min = (columnId, _leafRows, childRows) => {