test corregir error undefined
This commit is contained in:
parent
d18996f82b
commit
be3b66ebae
@ -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
@ -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": [
|
||||
|
Loading…
Reference in New Issue
Block a user