Skip to content

Commit

Permalink
updated filter to stop error if geojson is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeGoodall committed Jan 24, 2024
1 parent 6ec1a7a commit db24432
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/core/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ def make_link_filter(eval_ctx, url, **kwargs):
def get_entity_geometry(entity):
return {
"name": get_entity_name(entity),
"data": entity.geojson.geometry,
"data": entity.geojson.geometry if entity.geojson is not None else None,
"entity": entity.entity,
}

Expand Down

0 comments on commit db24432

Please sign in to comment.