awing-library 2.1.44 → 2.1.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -33,7 +33,7 @@ var CircularProgress_1 = __importDefault(require("../CircularProgress"));
|
|
|
33
33
|
var CustomRow_1 = __importDefault(require("./CustomRow"));
|
|
34
34
|
var NoData_1 = __importDefault(require("../NoData"));
|
|
35
35
|
var constants_1 = require("../../constants");
|
|
36
|
-
var
|
|
36
|
+
var lodash_1 = require("lodash");
|
|
37
37
|
function GroupTable(props) {
|
|
38
38
|
var headCells = props.headCells, filters = props.filters, onGetData = props.onGetData, customRow = props.customRow, onRowClicked = props.onRowClicked;
|
|
39
39
|
var row = customRow || CustomRow_1.default;
|
|
@@ -51,13 +51,13 @@ function GroupTable(props) {
|
|
|
51
51
|
(0, react_1.useEffect)(function () {
|
|
52
52
|
handleGetGroupData();
|
|
53
53
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
54
|
-
}, [groupPageSize, groupPageIndex]);
|
|
54
|
+
}, [JSON.stringify(headCells), groupPageSize, groupPageIndex]);
|
|
55
55
|
var handleGetGroupData = function () {
|
|
56
56
|
setLoading(true);
|
|
57
57
|
onGetData(filters, groupPageIndex, groupPageSize).then(function (result) {
|
|
58
58
|
setLoading(false);
|
|
59
|
-
!isEqual(data, result.data) && setData(result.data);
|
|
60
|
-
!isEqual(totalCount, result.totalCount) &&
|
|
59
|
+
!(0, lodash_1.isEqual)(data, result.data) && setData(result.data);
|
|
60
|
+
!(0, lodash_1.isEqual)(totalCount, result.totalCount) &&
|
|
61
61
|
setTotalCount(result.totalCount);
|
|
62
62
|
});
|
|
63
63
|
};
|