From c782f0f9efce2c4d4b382db5a37aa0b417062c7f Mon Sep 17 00:00:00 2001 From: Mathias Boeck Date: Thu, 22 Sep 2022 17:48:15 +0200 Subject: [PATCH] fix: test if layer has description on generate abstract --- projects/services-ogc/src/lib/owc/owc-json.service.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/projects/services-ogc/src/lib/owc/owc-json.service.ts b/projects/services-ogc/src/lib/owc/owc-json.service.ts index c484bb4b2..9655bce99 100644 --- a/projects/services-ogc/src/lib/owc/owc-json.service.ts +++ b/projects/services-ogc/src/lib/owc/owc-json.service.ts @@ -1367,6 +1367,9 @@ export class OwcJsonService { } private generateAbstractFromLayerDescription(description: Layer['description'], layerID?: Layer['id']) { + if(!description){ + return ''; + } if (typeof description === 'string') { return description } else {