From 0c5bd5d7b955e4746df1e8a00fc9091fe2e5d70d Mon Sep 17 00:00:00 2001 From: Angelika Kinas Date: Wed, 31 Jul 2024 09:07:44 +0200 Subject: [PATCH] Fix adding places from thesaurus --- .../form-field-spatial-extent.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.ts b/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.ts index 27e47d8f7f..a5ee3d529a 100644 --- a/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.ts +++ b/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.ts @@ -88,7 +88,7 @@ export class FormFieldSpatialExtentComponent implements OnInit { this.keywordsLinkedToExtents[keyword?.key] = { placeKeyword: keyword, spatialExtents: { - bbox: bbox.length >= 0 ? bbox : coordsBbox, + bbox: bbox?.length >= 0 ? bbox : coordsBbox, geometries: geometries, description: keyword.label, },