Skip to content

Commit

Permalink
Deal with empty countries in filter.
Browse files Browse the repository at this point in the history
  • Loading branch information
meisterT committed Sep 3, 2023
1 parent 99bc2c3 commit bf1bd43
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions webapp/templates/partials/scoreboard.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,10 @@
<label for="scoreboard-filter-country">Countries</label>
<select id="scoreboard-filter-country" class="form-control me-2" multiple size="8" name="countries[]">
{% for country in filterValues.countries %}
<option {% if country in scoreFilter.countries %}selected{% endif %}
value="{{ country }}">{{ alpha3_countries[country] }}</option>
{% if country is not empty %}
<option {% if country in scoreFilter.countries %}selected{% endif %}
value="{{ country }}">{{ alpha3_countries[country] }}</option>
{% endif %}
{% endfor %}
</select>
</div>
Expand Down

0 comments on commit bf1bd43

Please sign in to comment.