@esfaenza/es-table 13.1.8 → 13.1.9
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.
|
@@ -3854,20 +3854,20 @@ class EsTableComponent {
|
|
|
3854
3854
|
*/
|
|
3855
3855
|
bindDisplayToLoadedItemsOrGroups(view) {
|
|
3856
3856
|
var _a, _b;
|
|
3857
|
-
if (this.TMPBoundSource.length == 0) {
|
|
3857
|
+
if (!this.TMPBoundSource || this.TMPBoundSource.length == 0) {
|
|
3858
3858
|
this.BaseItemsCount = 0;
|
|
3859
|
-
this.boundSource =
|
|
3859
|
+
this.boundSource = [];
|
|
3860
3860
|
return;
|
|
3861
3861
|
}
|
|
3862
3862
|
if (this.arrayMode || !this.UseCustomCells) {
|
|
3863
3863
|
this.boundSource = this.TMPBoundSource;
|
|
3864
|
-
this.BaseItemsCount = (view === null || view === void 0 ? void 0 : view.objectcount) || view.length;
|
|
3864
|
+
this.BaseItemsCount = (view === null || view === void 0 ? void 0 : view.objectcount) || (view === null || view === void 0 ? void 0 : view.length) || 0;
|
|
3865
3865
|
return;
|
|
3866
3866
|
}
|
|
3867
|
-
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;
|
|
3867
|
+
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;
|
|
3868
3868
|
if (groupingKeys == 0) {
|
|
3869
3869
|
this.boundSource = this.TMPBoundSource;
|
|
3870
|
-
this.BaseItemsCount = view.objectcount;
|
|
3870
|
+
this.BaseItemsCount = (view === null || view === void 0 ? void 0 : view.objectcount) || 0;
|
|
3871
3871
|
return;
|
|
3872
3872
|
}
|
|
3873
3873
|
this.rowGrouping_H.handleNewDataOnRowGrouping(view, groupingKeys);
|