ngx-render-material-forms 2.3.3 → 2.3.4

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.
@@ -3561,9 +3561,9 @@ class AddOnProductsComponent {
3561
3561
  category: [product?.category || ''],
3562
3562
  subCategory: [product?.subCategory || ''],
3563
3563
  value: [product?.value || ''],
3564
- otherInformation0: [product?.otherInformation0 || ''],
3564
+ otherInformation0: [product?.otherInformation0 || '', this.showCost ? Validators.required : []],
3565
3565
  otherInformation1: [product?.otherInformation1 || ''],
3566
- otherInformation2: [product?.otherInformation2 || '', this.showCost ? Validators.required : []]
3566
+ otherInformation2: [product?.otherInformation2 || '']
3567
3567
  }));
3568
3568
  });
3569
3569
  selectedProductsArray.controls.forEach(control => {
@@ -3777,9 +3777,9 @@ class AddOnProductsComponent {
3777
3777
  category: [product?.category || ''],
3778
3778
  subCategory: [product?.subCategory || ''],
3779
3779
  value: [product?.value || ''],
3780
- otherInformation0: [product?.otherInformation0 || ''],
3780
+ otherInformation0: [product?.otherInformation0 || '', this.showCost ? Validators.required : []],
3781
3781
  otherInformation1: [product?.otherInformation1 || ''],
3782
- otherInformation2: [product?.otherInformation2 ?? '', this.showCost ? Validators.required : []]
3782
+ otherInformation2: [product?.otherInformation2 ?? '']
3783
3783
  });
3784
3784
  if (productFormGroup) {
3785
3785
  selectedProductsArray.push(productFormGroup);