From 76f4332bb3cf3dbd33448a38cef9177afbdd3b4a Mon Sep 17 00:00:00 2001 From: Antonin Coquet <ext.sopra.acoquet@grandlyon.com> Date: Thu, 6 May 2021 16:15:42 +0200 Subject: [PATCH] fix: remove deletion of accompaniement on strucutre edit --- src/app/form/form.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/form/form.component.ts b/src/app/form/form.component.ts index d1a333c95..7e19498b2 100644 --- a/src/app/form/form.component.ts +++ b/src/app/form/form.component.ts @@ -832,7 +832,7 @@ export class FormComponent implements OnInit { } public toggleProceduresAccompaniment(): void { this.showProceduresAccompaniment = !this.showProceduresAccompaniment; - if (!this.showProceduresAccompaniment) { + if (!this.showProceduresAccompaniment && !this.isEditMode) { this.getStructureControl('proceduresAccompaniment').reset(); } this.setValidationsForm(); -- GitLab