From 03049436333056ca5db28ae45bc3d2c2a9898266 Mon Sep 17 00:00:00 2001 From: mdelez <60604010+mdelez@users.noreply.github.com> Date: Tue, 20 Sep 2022 16:28:01 +0200 Subject: [PATCH] fix(property-form): set the cache after the ontology changes with the new lastModificationDate to prevent 409 http errors (#824) --- .../project/ontology/property-form/property-form.component.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/project/ontology/property-form/property-form.component.ts b/src/app/project/ontology/property-form/property-form.component.ts index 148721fb9f..c6b4cc13d0 100644 --- a/src/app/project/ontology/property-form/property-form.component.ts +++ b/src/app/project/ontology/property-form/property-form.component.ts @@ -503,6 +503,9 @@ export class PropertyFormComponent implements OnInit { } ); } + + this.ontology.lastModificationDate = this.lastModificationDate; + this._cache.set('currentOntology', this.ontology); }, (error: ApiResponseError) => { this.error = true;