Skip to content

Commit

Permalink
fix: check geom type Feature in preview tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
nrjadkry authored and spwoodcock committed Jan 4, 2024
1 parent 02d2ff0 commit 4a056e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/app/projects/project_crud.py
Original file line number Diff line number Diff line change
Expand Up @@ -2328,7 +2328,7 @@ def is_valid_coordinate(coord):
coordinates = (
features[-1].get("geometry", {}).get("coordinates", []) if features else []
)
elif input_geojson_type == "Feature":
elif input_geojson_type := input_geojson.get("type") == "Feature":
coordinates = input_geojson.get("geometry", {}).get("coordinates", [])

geometry_type = (
Expand Down

0 comments on commit 4a056e8

Please sign in to comment.