Skip to content

Commit

Permalink
fix(geo): check Capability contains layers list before loop (#1570)
Browse files Browse the repository at this point in the history
  • Loading branch information
aziz-access authored Feb 14, 2024
1 parent 977206e commit f4959eb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/geo/src/lib/catalog/shared/catalog.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
})
);
}
Expand Down

0 comments on commit f4959eb

Please sign in to comment.