@fluxhub/fluxhub-lib 10.0.606 → 10.0.607

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.
@@ -7378,8 +7378,12 @@
7378
7378
  }
7379
7379
  if (this.valDef == null)
7380
7380
  this.dis_value = "";
7381
- else
7382
- this.dis_value = this._tsr.instant(this.valDef.split("-1").join(""));
7381
+ else {
7382
+ if (this.valDef.split("-1").join("") != '')
7383
+ this.dis_value = this._tsr.instant(this.valDef.split("-1").join(""));
7384
+ else
7385
+ this.dis_value = "";
7386
+ }
7383
7387
  }
7384
7388
  catch (e) {
7385
7389
  //console.log("errore split -> this.valDef ", this.valDef);
@@ -7638,8 +7642,12 @@
7638
7642
  }
7639
7643
  this.setByValue(this.valDef);
7640
7644
  this.is_loaded = true;
7641
- if (this.getValue() == "-1")
7642
- this.setByDescri(this._tsr.instant(this.valDef));
7645
+ if (this.getValue() == "-1") {
7646
+ if (this.valDef != '')
7647
+ this.setByDescri(this._tsr.instant(this.valDef));
7648
+ else
7649
+ this.setByDescri(this.valDef);
7650
+ }
7643
7651
  };
7644
7652
  FHComboboxComponent.prototype.doFill = function () {
7645
7653
  var _this = this;
@@ -19760,7 +19768,11 @@
19760
19768
  this.user_email = this.app_s.user_email;
19761
19769
  return;
19762
19770
  }
19763
- var obj = JSON.parse(this.uti_s.decrypt_v3(localStorage.getItem(this.app_s.COMPANY_KEY + '_imp_user')));
19771
+ var obj = null;
19772
+ try {
19773
+ obj = JSON.parse(this.uti_s.decrypt_v3(localStorage.getItem(this.app_s.COMPANY_KEY + '_imp_user')));
19774
+ }
19775
+ catch (e) { }
19764
19776
  if (obj == null) {
19765
19777
  this.user_idp = this.app_s.user;
19766
19778
  this.user_nome = this.app_s.user_name;