iptdevs-design-system 3.1.182 → 3.1.184

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.
@@ -3108,15 +3108,6 @@ class CodFormStepOneComponent extends CodFormSteps {
3108
3108
  this.controls = new CodFormControls().controls[0];
3109
3109
  this.copies = this.copiesService.copies;
3110
3110
  }
3111
- ngOnInit() {
3112
- // this.getParameters();
3113
- // this.initForm();
3114
- // this.startLocalStorageWork();
3115
- // this.setValuesByLocalStorage()
3116
- // this.codFormStepOne.controls['course_type'].valueChanges
3117
- // .subscribe(value => this.communicatorService.setCurrentCourseType(value));
3118
- // this.communicatorService.setCurrentAgreement(this.localStorageCOD.getCodFormData(1, 'agreement_by_category')!);
3119
- }
3120
3111
  /* Es necesario recorrer el array de controls de nuestro formulario para:
3121
3112
  ✅ Leer el Local Storage y setear los valores
3122
3113
  ✅ Subscribirse a los cambios del formulario para setear valores nuevos
@@ -3138,6 +3129,8 @@ class CodFormStepOneComponent extends CodFormSteps {
3138
3129
  this.getAgreementByPlan(this.initialData.course_type.academic_plan.code);
3139
3130
  this.getCourseType(this.initialData.course_type.academic_plan.code);
3140
3131
  this.codFormStepOne.controls['english_level'].setValue(this.initialData.english_level.code);
3132
+ this.codFormStepOne.controls['agreement_by_category'].setValue(this.initialData.agreement.code);
3133
+ this.codFormStepOne.controls['course_type'].setValue(this.initialData.course_type.code);
3141
3134
  this.getAvailibleCourses();
3142
3135
  this.setDataFromUserHistory();
3143
3136
  }