@esfaenza/es-table 12.2.27 → 12.2.28
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.
|
@@ -3573,8 +3573,8 @@ class EsTableComponent {
|
|
|
3573
3573
|
console.error("Non posso utilizzare le preference senza che il pacchetto @esfaenza/preferences sia installato");
|
|
3574
3574
|
else {
|
|
3575
3575
|
var prefs = yield this.prefService.retrieve(this.ngControl.name).toPromise();
|
|
3576
|
-
this.View.columns = prefs.columns;
|
|
3577
|
-
this.View.column_ordering = prefs.column_ordering;
|
|
3576
|
+
this.View.columns = (prefs === null || prefs === void 0 ? void 0 : prefs.columns) || [];
|
|
3577
|
+
this.View.column_ordering = (prefs === null || prefs === void 0 ? void 0 : prefs.column_ordering) || [];
|
|
3578
3578
|
}
|
|
3579
3579
|
}
|
|
3580
3580
|
// La paginazione devo farla solamente quando richiedo o un gruppo principale (se sono in row grouping) o se non richiedo gruppi (in tutti lgi altri casi)
|
|
@@ -3596,8 +3596,8 @@ class EsTableComponent {
|
|
|
3596
3596
|
console.error("Non posso utilizzare le preference senza che il pacchetto @esfaenza/preferences sia installato");
|
|
3597
3597
|
else {
|
|
3598
3598
|
var prefs = yield this.prefService.retrieve(this.ngControl.name).toPromise();
|
|
3599
|
-
this.arrayColumns = prefs.columns;
|
|
3600
|
-
this.arrayColumnOrdering = prefs.column_ordering;
|
|
3599
|
+
this.arrayColumns = (prefs === null || prefs === void 0 ? void 0 : prefs.columns) || [];
|
|
3600
|
+
this.arrayColumnOrdering = (prefs === null || prefs === void 0 ? void 0 : prefs.column_ordering) || [];
|
|
3601
3601
|
}
|
|
3602
3602
|
}
|
|
3603
3603
|
if (this.SearchView)
|