test corregir error undefined

This commit is contained in:
dehernandezm 2025-02-10 12:43:59 -06:00
parent 6f4e0dcada
commit d18996f82b
3 changed files with 5 additions and 3 deletions

View File

@ -384,8 +384,10 @@ function makeRenderer() {
'tbody', 'tbody',
null, null,
rowKeysSub.map(function (rowKey, i) { rowKeysSub.map(function (rowKey, i) {
var totalAggregator = pivotData.getAggregator(rowKey, []);
var isSubTotal = rowKey.includes('[:sub-total:]'); var isSubTotal = rowKey.includes('[:sub-total:]');
var totalAggregator = isSubTotal ? { value: function value() {
return 0;
} } : pivotData.getAggregator(rowKey, []);
return _react2.default.createElement( return _react2.default.createElement(
'tr', 'tr',
{ key: 'rowKeyRow' + i }, { key: 'rowKeyRow' + i },

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
{ {
"name": "v-react-pivottable", "name": "v-react-pivottable",
"version": "0.11.49", "version": "0.11.50",
"description": "A React-based pivot table", "description": "A React-based pivot table",
"main": "PivotTableUI.js", "main": "PivotTableUI.js",
"files": [ "files": [