iptdevs-design-system 3.1.366 → 3.1.368
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.
- package/esm2020/lib/cod/steps/cod-form-step-one/cod-form-step-one.component.mjs +9 -11
- package/fesm2015/iptdevs-design-system.mjs +9 -11
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +8 -10
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -3259,19 +3259,17 @@ class CodFormStepOneComponent extends CodFormSteps {
|
|
|
3259
3259
|
if (this.isEditCod) {
|
|
3260
3260
|
this.setDataFromEditCodHistory();
|
|
3261
3261
|
}
|
|
3262
|
-
else {
|
|
3263
|
-
|
|
3264
|
-
this.setDataFromUserHistory();
|
|
3265
|
-
}
|
|
3262
|
+
else if (!this.isEditCod && this.initialData != null) {
|
|
3263
|
+
this.setDataFromUserHistory();
|
|
3266
3264
|
}
|
|
3267
3265
|
}
|
|
3268
3266
|
setDataFromUserHistory() {
|
|
3269
|
-
this.codFormStepOne.controls['academic_plan'].setValue(this.initialData.course_type?.academic_plan.code
|
|
3270
|
-
this.codFormStepOne.controls['course_type'].setValue(this.initialData.course_type?.code
|
|
3271
|
-
this.codFormStepOne.controls['agreement_by_category'].setValue(this.initialData.agreement?.code
|
|
3272
|
-
this.codFormStepOne.controls['english_level'].setValue(this.initialData.english_level?.code
|
|
3273
|
-
this.codFormStepOne.controls['availible_courses'].setValue(this.initialData?.code
|
|
3274
|
-
this.codFormStepOne.controls['course_modality'].setValue(this.initialData.course_modality?.code
|
|
3267
|
+
this.codFormStepOne.controls['academic_plan'].setValue(this.initialData.course_type?.academic_plan.code);
|
|
3268
|
+
this.codFormStepOne.controls['course_type'].setValue(this.initialData.course_type?.code);
|
|
3269
|
+
this.codFormStepOne.controls['agreement_by_category'].setValue(this.initialData.agreement?.code);
|
|
3270
|
+
this.codFormStepOne.controls['english_level'].setValue(this.initialData.english_level?.code);
|
|
3271
|
+
this.codFormStepOne.controls['availible_courses'].setValue(this.initialData?.code);
|
|
3272
|
+
this.codFormStepOne.controls['course_modality'].setValue(this.initialData.course_modality?.code);
|
|
3275
3273
|
}
|
|
3276
3274
|
setDataFromEditCodHistory() {
|
|
3277
3275
|
this.codFormStepOne.controls['academic_plan'].setValue(this.dataPreviusCodData.course_type.academic_plan.code ? this.dataPreviusCodData.course_type.academic_plan.code : null);
|