@esfaenza/es-table 11.2.112 → 11.2.113

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.
@@ -3864,7 +3864,9 @@ class EsTableComponent {
3864
3864
  if (updatedPrefs) {
3865
3865
  this.View.columns = (prefs === null || prefs === void 0 ? void 0 : prefs.columns) || [];
3866
3866
  this.View.column_ordering = (prefs === null || prefs === void 0 ? void 0 : prefs.column_ordering) || [];
3867
- this.View.orders = (prefs === null || prefs === void 0 ? void 0 : prefs.orders) || [];
3867
+ // Se le pref sono nulle non sovrascrivo gli ordini dato che potrebbe servire mettere degli ordinamenti di default lato ts
3868
+ if (prefs)
3869
+ this.View.orders = (prefs === null || prefs === void 0 ? void 0 : prefs.orders) || [];
3868
3870
  }
3869
3871
  }
3870
3872
  }
@@ -3912,7 +3914,9 @@ class EsTableComponent {
3912
3914
  if (updatedPrefs) {
3913
3915
  this.View.columns = (prefs === null || prefs === void 0 ? void 0 : prefs.columns) || [];
3914
3916
  this.View.column_ordering = (prefs === null || prefs === void 0 ? void 0 : prefs.column_ordering) || [];
3915
- this.View.orders = (prefs === null || prefs === void 0 ? void 0 : prefs.orders) || [];
3917
+ // Se le pref sono nulle non sovrascrivo gli ordini dato che potrebbe servire mettere degli ordinamenti di default lato ts
3918
+ if (prefs)
3919
+ this.View.orders = (prefs === null || prefs === void 0 ? void 0 : prefs.orders) || [];
3916
3920
  }
3917
3921
  }
3918
3922
  }