remover validacion de length porque no es array, remover console.log}

This commit is contained in:
dehernandezm 2025-01-24 13:08:44 -06:00
parent 017b23d2c3
commit 12aa058e95
3 changed files with 3 additions and 8 deletions

View File

@ -264,16 +264,11 @@ function makeRenderer() {
};
var getFormatedValue = function getFormatedValue(aggregator, rowKey, colKey) {
console.log('--------------getFormatedValue-----------------');
var valToFormat = aggregator.value();
console.log('valToFormat', valToFormat);
var resultValue = aggregator.format(valToFormat);
var keyColumnaCalculo = isNotNullish(_this2.props.vals) && _this2.props.vals.length ? _this2.props.vals[0] : null;
console.log('keyColumnaCalculo', keyColumnaCalculo);
console.log('this.props.headersDefinitions', _this2.props.headersDefinitions);
if (isNotNullish(keyColumnaCalculo) && isNotNullish(_this2.props.headersDefinitions) && _this2.props.headersDefinitions.length) {
if (isNotNullish(keyColumnaCalculo) && isNotNullish(_this2.props.headersDefinitions)) {
var _definition = _this2.props.headersDefinitions[keyColumnaCalculo];
console.log('_definition', _definition);
if (isNotNullish(_definition) && isNotNullish(_definition.value)) {
if (_definition.value.startsWith('count_') || _definition.value.startsWith('countd_')) {
resultValue = isNotNullish(_this2.props.functions) ? _this2.props.functions.formatedValue(valToFormat, '0,0', 'number', true, '') : resultValue;

File diff suppressed because one or more lines are too long

View File

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