ods-component-lib 1.18.159 → 1.18.160

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.
package/dist/index.js CHANGED
@@ -34572,7 +34572,7 @@ var OdsServerSideDatagrid = function OdsServerSideDatagrid(props) {
34572
34572
  var currentPageIndex = dataGridInstance.pageCount();
34573
34573
  var currentTotalCount = currentPageIndex == 0 ? 50 : dataGridInstance.totalCount();
34574
34574
  var newData = dataGridInstance === null || dataGridInstance === void 0 ? void 0 : (_dataGridInstance$get = dataGridInstance.getDataSource()) === null || _dataGridInstance$get === void 0 ? void 0 : _dataGridInstance$get.items();
34575
- if ((!filterApplied && currentPageIndex == 1 || lastPageIndexRef.current !== currentPageIndex) && newData && newData.length > 0) {
34575
+ if ((!filterApplied && currentPageIndex == 1 && currentTotalCount != totalUnfilteredCount.current || lastPageIndexRef.current !== currentPageIndex) && newData && newData.length > 0) {
34576
34576
  setHeaderFilterData(function (prevData) {
34577
34577
  var uniqueValuesByColumn = {};
34578
34578
  props.columns.forEach(function (col) {