diff --git a/app/templates/maps.html b/app/templates/maps.html index da45976..88077fe 100644 --- a/app/templates/maps.html +++ b/app/templates/maps.html @@ -23,13 +23,16 @@ let locations = []; let loc = {}; - {% for loc in locations -%} +{% for loc in locations -%} + {% if loc.address %} loc = { "address": "{{loc.address}}", "name": "{{loc.name}}" }; - locations.push(loc); - {%- endfor %} + locations.push(loc); + + {% endif %} +{%- endfor %} loadmap(locations);