Spaces:
Running
Running
Simon Riezebos
commited on
Commit
Β·
36f7561
1
Parent(s):
fbfa72a
Fix delete area bug
Browse files- app/pages/0_π_Areas_Of_Interest.py +1 -1
- app/src/gfm.py +0 -1
app/pages/0_π_Areas_Of_Interest.py
CHANGED
@@ -115,7 +115,7 @@ elif radio_selection == "Create New Area":
|
|
115 |
|
116 |
# Delete area does exactly that, it will show the selected area and a delete button
|
117 |
elif radio_selection == "Delete Area":
|
118 |
-
existing_areas = [aoi["
|
119 |
|
120 |
area_to_delete_name_id = st.selectbox(
|
121 |
"Choose area to delete", options=existing_areas
|
|
|
115 |
|
116 |
# Delete area does exactly that, it will show the selected area and a delete button
|
117 |
elif radio_selection == "Delete Area":
|
118 |
+
existing_areas = [aoi["name"] for aoi in aois.values()]
|
119 |
|
120 |
area_to_delete_name_id = st.selectbox(
|
121 |
"Choose area to delete", options=existing_areas
|
app/src/gfm.py
CHANGED
@@ -172,7 +172,6 @@ class GFMHandler:
|
|
172 |
aoi["aoi_id"]: {
|
173 |
"name": aoi["aoi_name"],
|
174 |
"bbox": aoi["geoJSON"],
|
175 |
-
"name_id_preview": f"{aoi['aoi_name']} - {aoi['aoi_id'][:6]}...",
|
176 |
}
|
177 |
for aoi in aois
|
178 |
}
|
|
|
172 |
aoi["aoi_id"]: {
|
173 |
"name": aoi["aoi_name"],
|
174 |
"bbox": aoi["geoJSON"],
|
|
|
175 |
}
|
176 |
for aoi in aois
|
177 |
}
|