iptdevs-design-system 3.1.272 → 3.1.274
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 +10 -10
- package/fesm2015/iptdevs-design-system.mjs +11 -10
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +9 -9
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -3175,9 +3175,9 @@ class CodFormStepOneComponent extends CodFormSteps {
|
|
|
3175
3175
|
const { codFormStepOne } = this;
|
|
3176
3176
|
this.getAgreementByPlan(data.course_type?.academic_plan.code);
|
|
3177
3177
|
this.getCourseType(data.course_type?.academic_plan.code);
|
|
3178
|
-
codFormStepOne.controls['english_level'].setValue(data.english_level
|
|
3179
|
-
codFormStepOne.controls['agreement_by_category'].setValue(data.agreement
|
|
3180
|
-
codFormStepOne.controls['course_type'].setValue(data.course_type
|
|
3178
|
+
codFormStepOne.controls['english_level'].setValue(data.english_level?.code);
|
|
3179
|
+
codFormStepOne.controls['agreement_by_category'].setValue(data.agreement?.code);
|
|
3180
|
+
codFormStepOne.controls['course_type'].setValue(data.course_type?.code);
|
|
3181
3181
|
this.getAvailibleCourses();
|
|
3182
3182
|
if (this.isEditCod) {
|
|
3183
3183
|
this.setDataFromEditCodHistory();
|
|
@@ -3187,12 +3187,12 @@ class CodFormStepOneComponent extends CodFormSteps {
|
|
|
3187
3187
|
}
|
|
3188
3188
|
}
|
|
3189
3189
|
setDataFromUserHistory() {
|
|
3190
|
-
this.codFormStepOne.controls['academic_plan'].setValue(this.initialData.course_type
|
|
3191
|
-
this.codFormStepOne.controls['course_type'].setValue(this.initialData.course_type
|
|
3192
|
-
this.codFormStepOne.controls['agreement_by_category'].setValue(this.initialData.agreement
|
|
3193
|
-
this.codFormStepOne.controls['english_level'].setValue(this.initialData.english_level
|
|
3194
|
-
this.codFormStepOne.controls['availible_courses'].setValue(this.initialData
|
|
3195
|
-
this.codFormStepOne.controls['course_modality'].setValue(this.initialData.course_modality
|
|
3190
|
+
this.codFormStepOne.controls['academic_plan'].setValue(this.initialData.course_type?.academic_plan.code);
|
|
3191
|
+
this.codFormStepOne.controls['course_type'].setValue(this.initialData.course_type?.code);
|
|
3192
|
+
this.codFormStepOne.controls['agreement_by_category'].setValue(this.initialData.agreement?.code);
|
|
3193
|
+
this.codFormStepOne.controls['english_level'].setValue(this.initialData.english_level?.code);
|
|
3194
|
+
this.codFormStepOne.controls['availible_courses'].setValue(this.initialData?.code);
|
|
3195
|
+
this.codFormStepOne.controls['course_modality'].setValue(this.initialData.course_modality?.code);
|
|
3196
3196
|
}
|
|
3197
3197
|
setDataFromEditCodHistory() {
|
|
3198
3198
|
this.codFormStepOne.controls['academic_plan'].setValue(this.dataPreviusCodData.course_type.academic_plan.code);
|