Skip to content

Commit

Permalink
Fix bug on geometry type
Browse files Browse the repository at this point in the history
  • Loading branch information
kshitijrajsharma committed Dec 21, 2023
1 parent 37ffe65 commit 0e42f05
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/validation/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,9 @@ class RawDataCurrentParamsBase(BaseModel):
@validator("geometry_type", allow_reuse=True)
def return_unique_value(cls, value):
"""return unique list"""
return list(set(value))
if value:
return list(set(value))
return value


class RawDataCurrentParams(RawDataCurrentParamsBase):
Expand Down

0 comments on commit 0e42f05

Please sign in to comment.