@datorama/core 22.8.1-rc.2 → 22.8.1-rc.3

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.
@@ -14460,7 +14460,7 @@
14460
14460
  }
14461
14461
  };
14462
14462
  GridService.prototype.setGridSort = function (gridSort) {
14463
- if (this.api && gridSort) {
14463
+ if (gridSort && this.api && this.api.grid.getDisplayedRowCount() > 0) {
14464
14464
  var colId_1 = gridSort.colId, sort = gridSort.sort, sortIndex = gridSort.sortIndex;
14465
14465
  var sortToApply = gridSort;
14466
14466
  if (!isNil(sortIndex)) {