@esfaenza/es-table 11.2.37-beta2 → 11.2.38-beta1

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.
@@ -3384,20 +3384,20 @@ class EsTableComponent {
3384
3384
  */
3385
3385
  bindDisplayToLoadedItemsOrGroups(view) {
3386
3386
  var _a, _b;
3387
- if (this.TMPBoundSource.length == 0) {
3387
+ if (!this.TMPBoundSource || this.TMPBoundSource.length == 0) {
3388
3388
  this.BaseItemsCount = 0;
3389
3389
  this.boundSource = this.TMPBoundSource;
3390
3390
  return;
3391
3391
  }
3392
3392
  if (this.arrayMode || !this.UseCustomCells) {
3393
3393
  this.boundSource = this.TMPBoundSource;
3394
- this.BaseItemsCount = (view === null || view === void 0 ? void 0 : view.objectcount) || view.length;
3394
+ this.BaseItemsCount = (view === null || view === void 0 ? void 0 : view.objectcount) || (view === null || view === void 0 ? void 0 : view.length) || 0;
3395
3395
  return;
3396
3396
  }
3397
- let groupingKeys = ((_b = (_a = view.groupings) === null || _a === void 0 ? void 0 : _a.filter(t => !t.aggregation)) === null || _b === void 0 ? void 0 : _b.length) || 0;
3397
+ let groupingKeys = ((_b = (_a = view === null || view === void 0 ? void 0 : view.groupings) === null || _a === void 0 ? void 0 : _a.filter(t => !t.aggregation)) === null || _b === void 0 ? void 0 : _b.length) || 0;
3398
3398
  if (groupingKeys == 0) {
3399
3399
  this.boundSource = this.TMPBoundSource;
3400
- this.BaseItemsCount = view.objectcount;
3400
+ this.BaseItemsCount = (view === null || view === void 0 ? void 0 : view.objectcount) || 0;
3401
3401
  return;
3402
3402
  }
3403
3403
  this.rowGrouping_H.handleNewDataOnRowGrouping(view, groupingKeys);