diff --git a/src/app/shared/components/training-type-picker/training-type-picker.component.ts b/src/app/shared/components/training-type-picker/training-type-picker.component.ts index 78019ef2da51b5683cb86e7d3303620130fdbdde..51b4c168ab653197e4a645293101dff4274a3100 100644 --- a/src/app/shared/components/training-type-picker/training-type-picker.component.ts +++ b/src/app/shared/components/training-type-picker/training-type-picker.component.ts @@ -53,7 +53,6 @@ export class TrainingTypePickerComponent implements OnInit { } cat.modules = cat.modules.filter((module) => selectedModulesId.includes(module.id)); }); - console.log('MOUNT ', this.selectedChoices); }); } diff --git a/src/app/structure-list/components/structure-details/structure-details.component.ts b/src/app/structure-list/components/structure-details/structure-details.component.ts index e7375bc58f2d9dceeaa45ac9004c4720c503cf42..4e55440ae88ed1b7b4c66e7984831e0da6689f23 100644 --- a/src/app/structure-list/components/structure-details/structure-details.component.ts +++ b/src/app/structure-list/components/structure-details/structure-details.component.ts @@ -188,6 +188,10 @@ export class StructureDetailsComponent implements OnInit { } public close(): void { + if (this.router.url.startsWith('/acteurs')) { + this.router.navigateByUrl('/acteurs'); + return; + } this.route.url.subscribe((urls) => { if (urls.length > 0 && urls[0].path !== 'orientation') { this.router.navigate(['/acteurs'], {