@fluxhub/fluxhub-lib 9.0.56 → 9.0.57

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.
@@ -6719,25 +6719,27 @@ var FHAutoCompleteComponent = /** @class */ (function () {
6719
6719
  if (this.sItem != '') {
6720
6720
  this.searchItemsFiltered = [];
6721
6721
  var ps = this.sItem.toLowerCase();
6722
- for (var i = 0; i < this.myData.length; i++) {
6723
- if (this.myData[i].descrizione_valore != null) {
6724
- if (this.myData[i].descrizione_valore.toLowerCase().indexOf(ps) != -1) {
6725
- this.searchItemsFiltered.push(this.myData[i]);
6722
+ if (this.myData != null)
6723
+ for (var i = 0; i < this.myData.length; i++) {
6724
+ if (this.myData[i].descrizione_valore != null) {
6725
+ if (this.myData[i].descrizione_valore.toLowerCase().indexOf(ps) != -1) {
6726
+ this.searchItemsFiltered.push(this.myData[i]);
6727
+ }
6728
+ }
6729
+ if (ps.length < 4 && this.searchItemsFiltered.length == 20) {
6730
+ break;
6726
6731
  }
6727
6732
  }
6728
- if (ps.length < 4 && this.searchItemsFiltered.length == 20) {
6729
- break;
6730
- }
6731
- }
6732
6733
  }
6733
6734
  else {
6734
6735
  // console.log('onChange()1');
6735
- for (var i = 0; i < this.myData.length; i++) {
6736
- this.searchItemsFiltered.push(this.myData[i]);
6737
- if (i == 20) {
6738
- break;
6736
+ if (this.myData != null)
6737
+ for (var i = 0; i < this.myData.length; i++) {
6738
+ this.searchItemsFiltered.push(this.myData[i]);
6739
+ if (i == 20) {
6740
+ break;
6741
+ }
6739
6742
  }
6740
- }
6741
6743
  }
6742
6744
  }
6743
6745
  };
@@ -6856,15 +6858,16 @@ var FHAutoCompleteComponent = /** @class */ (function () {
6856
6858
  if (this.myData.length == 0 || this.myData[0] == null) {
6857
6859
  return;
6858
6860
  }
6859
- for (var j = 0; j < this.myData.length; j++)
6860
- if (this.myData[j].descrizione_valore == desc_val) {
6861
- this.sItem = desc_val;
6862
- this.selval = this.myData[j].valore;
6863
- if (this.sItem != null) {
6864
- this.descri_val = this.sItem;
6861
+ if (this.myData != null)
6862
+ for (var j = 0; j < this.myData.length; j++)
6863
+ if (this.myData[j].descrizione_valore == desc_val) {
6864
+ this.sItem = desc_val;
6865
+ this.selval = this.myData[j].valore;
6866
+ if (this.sItem != null) {
6867
+ this.descri_val = this.sItem;
6868
+ }
6869
+ return;
6865
6870
  }
6866
- return;
6867
- }
6868
6871
  if (!this.only_from_list) {
6869
6872
  this.sItem = desc_val;
6870
6873
  }