test corregir error undefined

This commit is contained in:
dehernandezm 2025-02-10 12:51:31 -06:00
parent d18996f82b
commit be3b66ebae
3 changed files with 6 additions and 3 deletions

View File

@ -384,6 +384,7 @@ function makeRenderer() {
'tbody',
null,
rowKeysSub.map(function (rowKey, i) {
var isSubTotal = rowKey.includes('[:sub-total:]');
var totalAggregator = isSubTotal ? { value: function value() {
return 0;
@ -409,7 +410,9 @@ function makeRenderer() {
);
}),
colKeys.map(function (colKey, j) {
var aggregator = pivotData.getAggregator(rowKey, colKey);
var aggregator = isSubTotal ? { value: function value() {
return 0;
} } : pivotData.getAggregator(rowKey, colKey);
return _react2.default.createElement(
'td',
{

File diff suppressed because one or more lines are too long

View File

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