From 3303232727b7ab57ccceb422380f967fb6fc1082 Mon Sep 17 00:00:00 2001 From: Angelika Kinas Date: Mon, 25 Sep 2023 12:22:24 +0200 Subject: [PATCH] fix(datahub): Console warn when filter fails to load the geometry --- apps/datahub/src/app/app.module.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/datahub/src/app/app.module.ts b/apps/datahub/src/app/app.module.ts index 89920806f9..6ba4304caa 100644 --- a/apps/datahub/src/app/app.module.ts +++ b/apps/datahub/src/app/app.module.ts @@ -176,6 +176,9 @@ export const metaReducers: MetaReducer[] = !environment.production ? [] : [] return fetch(getOptionalSearchConfig().FILTER_GEOMETRY_URL) .then((resp) => resp.json()) .then(getGeometryFromGeoJSON) + .catch(() => + console.warn('The geometry filter failed to load its geometry') + ) } return null },