@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.
|
@@ -3834,20 +3834,20 @@ class EsTableComponent {
|
|
|
3834
3834
|
* @param {any} view View da cui sono arrivati gli oggetti. Può essere o un array se sono in **arrayMode** o una AppSearch<T> se sono in **viewMode**
|
|
3835
3835
|
*/
|
|
3836
3836
|
bindDisplayToLoadedItemsOrGroups(view) {
|
|
3837
|
-
if (this.TMPBoundSource.length == 0) {
|
|
3837
|
+
if (!this.TMPBoundSource || this.TMPBoundSource.length == 0) {
|
|
3838
3838
|
this.BaseItemsCount = 0;
|
|
3839
|
-
this.boundSource =
|
|
3839
|
+
this.boundSource = [];
|
|
3840
3840
|
return;
|
|
3841
3841
|
}
|
|
3842
3842
|
if (this.arrayMode || !this.UseCustomCells) {
|
|
3843
3843
|
this.boundSource = this.TMPBoundSource;
|
|
3844
|
-
this.BaseItemsCount = view?.objectcount || view
|
|
3844
|
+
this.BaseItemsCount = view?.objectcount || view?.length || 0;
|
|
3845
3845
|
return;
|
|
3846
3846
|
}
|
|
3847
|
-
let groupingKeys = view
|
|
3847
|
+
let groupingKeys = view?.groupings?.filter(t => !t.aggregation)?.length || 0;
|
|
3848
3848
|
if (groupingKeys == 0) {
|
|
3849
3849
|
this.boundSource = this.TMPBoundSource;
|
|
3850
|
-
this.BaseItemsCount = view
|
|
3850
|
+
this.BaseItemsCount = view?.objectcount || 0;
|
|
3851
3851
|
return;
|
|
3852
3852
|
}
|
|
3853
3853
|
this.rowGrouping_H.handleNewDataOnRowGrouping(view, groupingKeys);
|