From c0ca979379ad5b6eefb6d9b3ff26c217b3e488d2 Mon Sep 17 00:00:00 2001 From: Jeremie BRISON <ext.sopra.jbrison@grandlyon.com> Date: Wed, 10 Feb 2021 15:05:52 +0100 Subject: [PATCH] fix(form) : fix modifiedAt on detail structure after edit --- src/app/form/form.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/form/form.component.ts b/src/app/form/form.component.ts index 94fc88cb6..233f6af6f 100644 --- a/src/app/form/form.component.ts +++ b/src/app/form/form.component.ts @@ -615,6 +615,7 @@ export class FormComponent implements OnInit { let user: User; if (this.isEditMode) { this.structureService.editStructure(structure).subscribe((s: Structure) => { + this.createdStructure = s; this.editForm = this.createStructureForm(s); }); } else { @@ -684,6 +685,6 @@ export class FormComponent implements OnInit { } public closeEditMode(): void { - this.router.navigateByUrl('home', { state: { data: this.editForm.value } }); + this.router.navigateByUrl('home', { state: { data: this.createdStructure } }); } } -- GitLab