iptdevs-design-system 3.1.523 → 3.1.524

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.
@@ -6681,19 +6681,22 @@ class CodSelfFormStepTwoComponent extends CodSelfManagedSteps {
6681
6681
  // Si hay un valor en el localStorage, establece el valor del FormControl
6682
6682
  // this.codSelfFormStepTwo.controls['modality'].setValue(courseModality);
6683
6683
  if (courseModality == "1") {
6684
- this.codSelfFormStepTwo.controls['modality'].setValue(this.stateOptions[0]);
6684
+ this.codSelfFormStepTwo.patchValue({
6685
+ modality: this.stateOptions[0]
6686
+ });
6687
+ this.codSelfFormStepTwo.controls['modality'].setValue(courseModality);
6685
6688
  }
6686
6689
  else {
6687
- this.codSelfFormStepTwo.controls['modality'].setValue(this.stateOptions[1]);
6690
+ this.codSelfFormStepTwo.patchValue({
6691
+ modality: this.stateOptions[1]
6692
+ });
6693
+ this.codSelfFormStepTwo.controls['modality'].setValue(courseModality);
6688
6694
  }
6689
6695
  }
6690
6696
  else {
6691
6697
  // Si no hay un valor en el localStorage, o si es null o vacío, establece un valor predeterminado
6692
6698
  this.codSelfFormStepTwo.controls['modality'].setValue(null);
6693
6699
  }
6694
- // this.codSelfFormStepTwo.patchValue({
6695
- // modality: courseModality
6696
- // })
6697
6700
  }
6698
6701
  back() {
6699
6702
  // Movernos al paso anterior