fix: remove double , when searching for city

This commit is contained in:
moanos [he/him] 2025-01-09 23:39:23 +01:00
parent 8edfe8c401
commit 50897b6d35

View File

@ -16,6 +16,6 @@ function geojson_to_summary(location) {
} }
function geojson_to_searchable_string(location) { function geojson_to_searchable_string(location) {
return ifdef(location.properties.name, "", ", ") + ifdef(location.properties.street, "", ifdef(location.properties.housenumber, " ","")) + ifdef(location.properties.city, ", ", "") + ifdef(location.properties.country, ", ", "") return ifdef(location.properties.name, "", ", ") + ifdef(location.properties.street, "", ifdef(location.properties.housenumber, " ",", ")) + ifdef(location.properties.city, "", ", ") + ifdef(location.properties.country, "", "")
} }