test remover cambio de state solo cambio por prop updater

This commit is contained in:
dehernandezm 2025-02-17 07:38:37 -06:00
parent e66bc1d059
commit 1dc4db6456
3 changed files with 4 additions and 4 deletions

View File

@ -601,7 +601,7 @@ var PivotTableUI = function (_React$PureComponent2) {
return _react2.default.createElement(DraggableAttribute, { return _react2.default.createElement(DraggableAttribute, {
name: x, name: x,
key: x, key: x,
attrValues: _this7.state.attrValues[x], attrValues: _this7.state.attrValues[x] || {},
valueFilter: _this7.props.valueFilter[x] || {}, valueFilter: _this7.props.valueFilter[x] || {},
sorter: (0, _Utilities.getSort)(_this7.props.sorters, x), sorter: (0, _Utilities.getSort)(_this7.props.sorters, x),
menuLimit: _this7.props.menuLimit, menuLimit: _this7.props.menuLimit,
@ -744,7 +744,7 @@ var PivotTableUI = function (_React$PureComponent2) {
var toggleSubTotales = function toggleSubTotales() { var toggleSubTotales = function toggleSubTotales() {
var _showSubt = _this8.props.showSubtotales === true ? true : false; var _showSubt = _this8.props.showSubtotales === true ? true : false;
_this8.propUpdater('showSubtotales')(!_showSubt); _this8.propUpdater('showSubtotales')(!_showSubt);
_this8.setState({ showSubtotales: !_showSubt }); // this.setState({ showSubtotales: !_showSubt })
}; };
var renderCheckSubtotal = function renderCheckSubtotal() { var renderCheckSubtotal = function renderCheckSubtotal() {
return _react2.default.createElement( return _react2.default.createElement(

File diff suppressed because one or more lines are too long

View File

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