From f9963080cec110ce61bee37550ddff6dfe4d74fe Mon Sep 17 00:00:00 2001 From: Etienne LOUPIAS <eloupias@grandlyon.com> Date: Mon, 11 Dec 2023 11:03:03 +0100 Subject: [PATCH] fix(orientation): learnSkills+rdv mess --- .../orientation-form-view/orientation-form-view.component.ts | 4 ++++ 1 file changed, 4 insertions(+) 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 5d9b2a72a..1510ebba6 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 @@ -284,6 +284,7 @@ export class OrientationFormViewComponent implements OnInit, AfterContentChecked // Skip first screen appointment info for learnSkills if (this.indicatorNeedType === NeedsType.learnSkills) { this.currentStep = AppointmentSteps.infoScreen + 1; + this.skipStructureOrientator(true); } else { this.currentStep = AppointmentSteps.infoScreen; } @@ -540,6 +541,9 @@ export class OrientationFormViewComponent implements OnInit, AfterContentChecked if (this.currentStep === AppointmentSteps.structureOrientator + 1) { this.skipStructureOrientator(false); } + if (this.indicatorNeedType === NeedsType.learnSkills && this.currentStep === AppointmentSteps.infoScreen + 1) { + this.currentStep--; + } if (this.currentStep === AppointmentSteps.carto) { this.fullScreen = false; } -- GitLab