@smartbit4all/ng-client 3.3.143 → 3.3.144

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.
@@ -5709,7 +5709,6 @@ class SmartformwidgetComponent {
5709
5709
  this.form.controls[this.widgetInstance.key].setValue([]);
5710
5710
  this.form.controls[this.widgetInstance.key].updateValueAndValidity();
5711
5711
  }
5712
- let asd = this.widgetInstance.value;
5713
5712
  this.form.controls[this.widgetInstance.key].value.push(value);
5714
5713
  this.form.controls[this.widgetInstance.key].updateValueAndValidity();
5715
5714
  }
@@ -5737,6 +5736,10 @@ class SmartformwidgetComponent {
5737
5736
  if ((this.widgetInstance.maxValues &&
5738
5737
  this.widgetInstance.value.length < this.widgetInstance.maxValues) ||
5739
5738
  !this.widgetInstance.maxValues) {
5739
+ if (!this.form.controls[this.widgetInstance.key].value) {
5740
+ this.form.controls[this.widgetInstance.key].setValue([]);
5741
+ this.form.controls[this.widgetInstance.key].updateValueAndValidity();
5742
+ }
5740
5743
  this.form.controls[this.widgetInstance.key].value.push(value);
5741
5744
  this.form.controls[this.widgetInstance.key].updateValueAndValidity();
5742
5745
  }