Skip to content

Commit

Permalink
fix(datahub): Console log when filter fails to load the geometry
Browse files Browse the repository at this point in the history
  • Loading branch information
Angi-Kinas authored and tkohr committed Sep 25, 2023
1 parent 1083b93 commit 32ef66e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apps/datahub/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
Expand Down

0 comments on commit 32ef66e

Please sign in to comment.