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 committed Dec 18, 2023
1 parent 8a615df commit d7bccaf
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 @@ -2325,7 +2325,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 d7bccaf

Please sign in to comment.