@tanstack/svelte-table 8.0.0-beta.9 → 8.0.6
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.
- package/build/cjs/table-core/build/esm/index.js +4 -1
- package/build/cjs/table-core/build/esm/index.js.map +1 -1
- package/build/esm/index.js +4 -1
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/umd/index.development.js +4 -1
- package/build/umd/index.development.js.map +1 -1
- package/build/umd/index.production.js +1 -1
- package/build/umd/index.production.js.map +1 -1
- package/package.json +2 -2
- package/build/stats-react.json +0 -205
- package/build/types/index.d.ts +0 -11
- package/build/types/placeholder.d.ts +0 -3
- package/build/types/render-component.d.ts +0 -3
package/build/esm/index.js
CHANGED
|
@@ -1334,7 +1334,10 @@ function shouldAutoRemoveFilter(filterFn, value, column) {
|
|
|
1334
1334
|
const sum = (columnId, _leafRows, childRows) => {
|
|
1335
1335
|
// It's faster to just add the aggregations together instead of
|
|
1336
1336
|
// process leaf nodes individually
|
|
1337
|
-
return childRows.reduce((sum, next) =>
|
|
1337
|
+
return childRows.reduce((sum, next) => {
|
|
1338
|
+
const nextValue = next.getValue(columnId);
|
|
1339
|
+
return sum + (typeof nextValue === 'number' ? nextValue : 0);
|
|
1340
|
+
}, 0);
|
|
1338
1341
|
};
|
|
1339
1342
|
|
|
1340
1343
|
const min = (columnId, _leafRows, childRows) => {
|