iptdevs-design-system 3.1.874 → 3.1.876

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.
@@ -3672,7 +3672,10 @@ class CodFormStepOneComponent extends CodFormSteps {
3672
3672
  this.cdRef = cdRef;
3673
3673
  this.changeStepEvent = new EventEmitter();
3674
3674
  this.isLoading = false;
3675
+ // Parameters
3676
+ this.agreements = [];
3675
3677
  this.availibleCourses = [];
3678
+ this.course_type = [];
3676
3679
  this.isDisabledSel = false;
3677
3680
  // Controls del formulario
3678
3681
  this.controls = new CodFormControls().controls[0];
@@ -3842,10 +3845,7 @@ class CodFormStepOneComponent extends CodFormSteps {
3842
3845
  const planNumber = typeof plan === 'string' ? parseInt(plan) : plan;
3843
3846
  if (this.parametersAll && this.parametersAll?.courseType) {
3844
3847
  this.course_type = this.parametersAll.courseType.filter((course) => {
3845
- const academicPlan = typeof course.academic_plan === 'string'
3846
- ? parseInt(course.academic_plan)
3847
- : course.academic_plan;
3848
- return academicPlan === planNumber;
3848
+ return course.academic_plan === planNumber;
3849
3849
  });
3850
3850
  }
3851
3851
  else {
@@ -3855,11 +3855,8 @@ class CodFormStepOneComponent extends CodFormSteps {
3855
3855
  getAgreementByPlan(plan) {
3856
3856
  const planNumber = typeof plan === 'string' ? parseInt(plan) : plan;
3857
3857
  if (this.parametersAll && this.parametersAll?.agreement) {
3858
- this.agreements = this.parametersAll.agreement.filter((course) => {
3859
- const academicPlan = typeof course.category === 'string'
3860
- ? parseInt(course.category)
3861
- : course.category;
3862
- return academicPlan === planNumber;
3858
+ this.agreements = this.parametersAll.agreement.filter((agreement) => {
3859
+ return agreement.category === planNumber;
3863
3860
  });
3864
3861
  }
3865
3862
  else {