From db2443200201e8ef84c11a56e9d75d14ac6f844c Mon Sep 17 00:00:00 2001 From: George Goodall Date: Wed, 24 Jan 2024 13:52:41 +0000 Subject: [PATCH] updated filter to stop error if geojson is undefined --- application/core/filters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/core/filters.py b/application/core/filters.py index 75f7481c..25018c39 100644 --- a/application/core/filters.py +++ b/application/core/filters.py @@ -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, }