@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.
@@ -6852,25 +6852,27 @@
6852
6852
  if (this.sItem != '') {
6853
6853
  this.searchItemsFiltered = [];
6854
6854
  var ps = this.sItem.toLowerCase();
6855
- for (var i = 0; i < this.myData.length; i++) {
6856
- if (this.myData[i].descrizione_valore != null) {
6857
- if (this.myData[i].descrizione_valore.toLowerCase().indexOf(ps) != -1) {
6858
- this.searchItemsFiltered.push(this.myData[i]);
6855
+ if (this.myData != null)
6856
+ for (var i = 0; i < this.myData.length; i++) {
6857
+ if (this.myData[i].descrizione_valore != null) {
6858
+ if (this.myData[i].descrizione_valore.toLowerCase().indexOf(ps) != -1) {
6859
+ this.searchItemsFiltered.push(this.myData[i]);
6860
+ }
6861
+ }
6862
+ if (ps.length < 4 && this.searchItemsFiltered.length == 20) {
6863
+ break;
6859
6864
  }
6860
6865
  }
6861
- if (ps.length < 4 && this.searchItemsFiltered.length == 20) {
6862
- break;
6863
- }
6864
- }
6865
6866
  }
6866
6867
  else {
6867
6868
  // console.log('onChange()1');
6868
- for (var i = 0; i < this.myData.length; i++) {
6869
- this.searchItemsFiltered.push(this.myData[i]);
6870
- if (i == 20) {
6871
- break;
6869
+ if (this.myData != null)
6870
+ for (var i = 0; i < this.myData.length; i++) {
6871
+ this.searchItemsFiltered.push(this.myData[i]);
6872
+ if (i == 20) {
6873
+ break;
6874
+ }
6872
6875
  }
6873
- }
6874
6876
  }
6875
6877
  }
6876
6878
  };
@@ -6989,15 +6991,16 @@
6989
6991
  if (this.myData.length == 0 || this.myData[0] == null) {
6990
6992
  return;
6991
6993
  }
6992
- for (var j = 0; j < this.myData.length; j++)
6993
- if (this.myData[j].descrizione_valore == desc_val) {
6994
- this.sItem = desc_val;
6995
- this.selval = this.myData[j].valore;
6996
- if (this.sItem != null) {
6997
- this.descri_val = this.sItem;
6994
+ if (this.myData != null)
6995
+ for (var j = 0; j < this.myData.length; j++)
6996
+ if (this.myData[j].descrizione_valore == desc_val) {
6997
+ this.sItem = desc_val;
6998
+ this.selval = this.myData[j].valore;
6999
+ if (this.sItem != null) {
7000
+ this.descri_val = this.sItem;
7001
+ }
7002
+ return;
6998
7003
  }
6999
- return;
7000
- }
7001
7004
  if (!this.only_from_list) {
7002
7005
  this.sItem = desc_val;
7003
7006
  }