Skip to content

Commit

Permalink
fix: add if for areaCode since it can be none
Browse files Browse the repository at this point in the history
In the case of taxoRankSheet
  • Loading branch information
Maxime Vergez committed Nov 28, 2022
1 parent ee7192c commit 3703408
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion atlas/templates/core/listTaxons.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<div id="taxonList" class="d-flex align-content-stretch bg-white flex-grow-1">
<ul class="list-group w-100">
{% for taxon in listTaxons.taxons %}
<li id="taxonListItem" class="media border-bottom p-2" area-code="{{ areaInfos.areaCode }}"
<li id="taxonListItem" class="media border-bottom p-2" {% if areaInfo is defined %} area-code="{{ areaInfos.areaCode }}" {% endif %}
cdRef="{{ taxon.cd_ref }}" {% if configuration.INTERACTIVE_MAP_LIST %}data-toggle="tooltip"
data-original-title="{{ _('display.municipality.obs') }}"{% endif %}>
<span class="d-none">{{ taxon.group2_inpn }}</span>
Expand Down

0 comments on commit 3703408

Please sign in to comment.