do not query osm for 'None' locations

This commit is contained in:
mcbloch 2019-04-06 19:05:41 +02:00
parent 83e4a10bbc
commit 31a731c1b8

View file

@ -24,11 +24,14 @@
let loc = {};
{% for loc in locations -%}
{% if loc.address %}
loc = {
"address": "{{loc.address}}",
"name": "{{loc.name}}"
};
locations.push(loc);
{% endif %}
{%- endfor %}
loadmap(locations);