From f4959eb78cc8c6c76c3b77507ea393a0ed7ea502 Mon Sep 17 00:00:00 2001 From: Aziz <119948730+aziz-access@users.noreply.github.com> Date: Wed, 14 Feb 2024 15:39:40 +0100 Subject: [PATCH] fix(geo): check Capability contains layers list before loop (#1570) --- packages/geo/src/lib/catalog/shared/catalog.service.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/geo/src/lib/catalog/shared/catalog.service.ts b/packages/geo/src/lib/catalog/shared/catalog.service.ts index fa09281d3..705c10d2c 100644 --- a/packages/geo/src/lib/catalog/shared/catalog.service.ts +++ b/packages/geo/src/lib/catalog/shared/catalog.service.ts @@ -178,6 +178,15 @@ export class CatalogService { ); this.includeRecursiveItems(catalog, capabilitiesCapabilityLayer, items); return items; + }), + catchError(() => { + this.messageService.error( + 'igo.geo.catalog.unavailable', + 'igo.geo.catalog.unavailableTitle', + undefined, + { value: catalog.title } + ); + return EMPTY; }) ); }