diff --git a/src/app/form/orientation-form-view/orientation-form-view.component.ts b/src/app/form/orientation-form-view/orientation-form-view.component.ts index 1a25c5f12b6c3a48df389efe95f68af6257b76a0..4dd07de2cc06ef9a09546fef082b964db75ce0e2 100644 --- a/src/app/form/orientation-form-view/orientation-form-view.component.ts +++ b/src/app/form/orientation-form-view/orientation-form-view.component.ts @@ -182,6 +182,7 @@ export class OrientationFormViewComponent implements OnInit, AfterContentChecked await lastValueFrom( this.orientationService.createAppointment({ ...this.onlineDemarcheForm.value, + orientationId: this.orientation?._id, onlineDemarcheType: this.onlineDemarcheForm.value.onlineDemarcheType.filter( (item) => item.name !== 'pmrAccess', ), @@ -299,7 +300,7 @@ export class OrientationFormViewComponent implements OnInit, AfterContentChecked this.tunnelingStepIs(AccompanimentTypes.appointment, AppointmentSteps.orientationRecap) || this.tunnelingStepIs(AccompanimentTypes.onlineMediation, OnlineMediationSteps.orientationRecap) ) { - this.orientation = await lastValueFrom(this.saveOrientation()) + this.orientation = await lastValueFrom(this.saveOrientation()); } // Deals with last steps