agregar validacion si existe objeto atributo en objeto filtros agregados

This commit is contained in:
dehernandezm 2025-01-14 14:06:29 -06:00
parent c1701c1143
commit 9984cda262
3 changed files with 5 additions and 4 deletions

View File

@ -410,7 +410,6 @@ var PivotTableUI = function (_React$PureComponent2) {
}, {
key: 'sendPropUpdate',
value: function sendPropUpdate(command) {
console.log(' sendPropUpdate this.props ', this.props);
this.props.onChange((0, _immutabilityHelper2.default)(this.props, command));
}
}, {
@ -451,7 +450,9 @@ var PivotTableUI = function (_React$PureComponent2) {
}, {
key: 'removeValuesFromFilter',
value: function removeValuesFromFilter(attribute, values) {
console.log(' removeValuesFromFilter this.props ', this.props);
if (!this.props.valueFilter[attribute]) {
return;
}
this.sendPropUpdate({
valueFilter: _defineProperty({}, attribute, { $unset: values })
});

File diff suppressed because one or more lines are too long

View File

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