@fluxhub/fluxhub-lib 22.0.7 → 22.0.8

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.
@@ -2882,6 +2882,8 @@ class FHComboboxComponent {
2882
2882
  translateValue(val) {
2883
2883
  if (!val)
2884
2884
  return '';
2885
+ // descrizione_valore puo' arrivare numerica dalla query: instant() vuole una stringa
2886
+ val = '' + val;
2885
2887
  if (val == '')
2886
2888
  return '';
2887
2889
  if (!this.disableTranslation)
@@ -3348,6 +3350,8 @@ class FHAutoCompleteComponent {
3348
3350
  translateValue(val) {
3349
3351
  if ((val || '') == '')
3350
3352
  return '';
3353
+ // descrizione_valore puo' arrivare numerica dalla query: instant() vuole una stringa
3354
+ val = '' + val;
3351
3355
  if (!this.disableTranslation && this.only_from_list)
3352
3356
  return this._tsr.instant(val);
3353
3357
  else
@@ -10476,9 +10480,15 @@ class FHGridComponent {
10476
10480
  return;
10477
10481
  setTimeout(() => {
10478
10482
  //get columns size
10483
+ // se nel frattempo si e' lasciata la pagina la griglia e' gia' distrutta:
10484
+ // getColumnState() torna undefined
10479
10485
  let go = this.gridApi;
10480
- if (go.getColumnState()[0].width < 24) {
10486
+ if (!go || go.isDestroyed?.())
10487
+ return;
10488
+ if (go.getColumnState()?.[0]?.width < 24) {
10481
10489
  setTimeout(() => {
10490
+ if (this.gridApi?.isDestroyed?.())
10491
+ return;
10482
10492
  this.autoSizeAll();
10483
10493
  }, 1000);
10484
10494
  }