From 50897b6d35437a87d7af8b6cf01fd983c1031e3f Mon Sep 17 00:00:00 2001 From: moanos Date: Thu, 9 Jan 2025 23:39:23 +0100 Subject: [PATCH] fix: remove double , when searching for city --- src/fellchensammlung/static/fellchensammlung/js/custom.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fellchensammlung/static/fellchensammlung/js/custom.js b/src/fellchensammlung/static/fellchensammlung/js/custom.js index 25df97b..419acb8 100644 --- a/src/fellchensammlung/static/fellchensammlung/js/custom.js +++ b/src/fellchensammlung/static/fellchensammlung/js/custom.js @@ -16,6 +16,6 @@ function geojson_to_summary(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, "", "") }