iptdevs-design-system 3.1.494 → 3.1.495

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.
@@ -6390,15 +6390,15 @@ class CodSelfFormStepOneComponent extends CodSelfManagedSteps {
6390
6390
  agreement_by_category: [''],
6391
6391
  });
6392
6392
  //Add agreement si grade is pregrade or postgrado
6393
- this.codSelfFormStepOne.get('grade')?.valueChanges.subscribe({
6394
- next: (grade) => {
6395
- if (grade === 15 || grade === 16) {
6396
- this.codSelfFormStepOne.get('agreement_by_category')?.setValidators([Validators.required]);
6393
+ this.codSelfFormStepOne.controls['grade'].valueChanges.subscribe({
6394
+ next: (change) => {
6395
+ if (change === 15 || change === 16) {
6396
+ this.codSelfFormStepOne.controls['agreement_by_category'].setValidators([Validators.required]);
6397
6397
  }
6398
6398
  else {
6399
- this.codSelfFormStepOne.get('agreement_by_category')?.clearValidators();
6399
+ this.codSelfFormStepOne.controls['agreement_by_category'].clearValidators();
6400
6400
  }
6401
- this.codSelfFormStepOne.get('agreement_by_category')?.updateValueAndValidity();
6401
+ this.codSelfFormStepOne.controls['agreement_by_category'].updateValueAndValidity();
6402
6402
  }
6403
6403
  });
6404
6404
  // Calcular edad y setear valor
@@ -6543,6 +6543,7 @@ class CodSelfFormStepOneComponent extends CodSelfManagedSteps {
6543
6543
  if (grade !== 'Grado Educativo') {
6544
6544
  this.codSelfFormStepOne.controls['grade'].setValue(grade);
6545
6545
  // Verificar si el grado seleccionado es 15 o 16
6546
+ console.log(grade);
6546
6547
  if (grade === 15 || grade === 16) {
6547
6548
  // Si es 15 o 16, mostrar el otro ipt-select
6548
6549
  this.showAgreementSelect = true;