agregar validacion si existe objeto atributo en objeto filtros agregados
This commit is contained in:
parent
c1701c1143
commit
9984cda262
@ -410,7 +410,6 @@ var PivotTableUI = function (_React$PureComponent2) {
|
|||||||
}, {
|
}, {
|
||||||
key: 'sendPropUpdate',
|
key: 'sendPropUpdate',
|
||||||
value: function sendPropUpdate(command) {
|
value: function sendPropUpdate(command) {
|
||||||
console.log(' sendPropUpdate this.props ', this.props);
|
|
||||||
this.props.onChange((0, _immutabilityHelper2.default)(this.props, command));
|
this.props.onChange((0, _immutabilityHelper2.default)(this.props, command));
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
@ -451,7 +450,9 @@ var PivotTableUI = function (_React$PureComponent2) {
|
|||||||
}, {
|
}, {
|
||||||
key: 'removeValuesFromFilter',
|
key: 'removeValuesFromFilter',
|
||||||
value: function removeValuesFromFilter(attribute, values) {
|
value: function removeValuesFromFilter(attribute, values) {
|
||||||
console.log(' removeValuesFromFilter this.props ', this.props);
|
if (!this.props.valueFilter[attribute]) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
this.sendPropUpdate({
|
this.sendPropUpdate({
|
||||||
valueFilter: _defineProperty({}, attribute, { $unset: values })
|
valueFilter: _defineProperty({}, attribute, { $unset: values })
|
||||||
});
|
});
|
||||||
|
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "v-react-pivottable",
|
"name": "v-react-pivottable",
|
||||||
"version": "0.11.20",
|
"version": "0.11.21",
|
||||||
"description": "A React-based pivot table",
|
"description": "A React-based pivot table",
|
||||||
"main": "PivotTableUI.js",
|
"main": "PivotTableUI.js",
|
||||||
"files": [
|
"files": [
|
||||||
|
Loading…
Reference in New Issue
Block a user