Skip to content

Commit

Permalink
fix(datahub): Console log when filter fails to load the geometry (#635)
Browse files Browse the repository at this point in the history
  • Loading branch information
Angi-Kinas committed Sep 25, 2023
1 parent 4264734 commit 6ccf44e
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 6ccf44e

Please sign in to comment.