From 6ccf44e0b801091823a070558e5efac05d4f786b Mon Sep 17 00:00:00 2001 From: Angi-Kinas <133115263+Angi-Kinas@users.noreply.github.com> Date: Mon, 25 Sep 2023 21:17:10 +0200 Subject: [PATCH] fix(datahub): Console log when filter fails to load the geometry (#635) --- apps/datahub/src/app/app.module.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/datahub/src/app/app.module.ts b/apps/datahub/src/app/app.module.ts index 89920806f..935be29ad 100644 --- a/apps/datahub/src/app/app.module.ts +++ b/apps/datahub/src/app/app.module.ts @@ -176,6 +176,11 @@ export const metaReducers: MetaReducer[] = !environment.production ? [] : [] return fetch(getOptionalSearchConfig().FILTER_GEOMETRY_URL) .then((resp) => resp.json()) .then(getGeometryFromGeoJSON) + .catch(() => + console.log( + 'No spatial filter was applied since a valid geometry could not be found' + ) + ) } return null },