Skip to content

Commit 6a024a8

Browse files
author
Maxime Vergez
committed
fix: add if for areaCode since it can be none
In the case of taxoRankSheet
1 parent ee7192c commit 6a024a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

atlas/templates/core/listTaxons.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<div id="taxonList" class="d-flex align-content-stretch bg-white flex-grow-1">
1919
<ul class="list-group w-100">
2020
{% for taxon in listTaxons.taxons %}
21-
<li id="taxonListItem" class="media border-bottom p-2" area-code="{{ areaInfos.areaCode }}"
21+
<li id="taxonListItem" class="media border-bottom p-2" {% if areaInfo is not none %} area-code="{{ areaInfos.areaCode }}" {% endif %}
2222
cdRef="{{ taxon.cd_ref }}" {% if configuration.INTERACTIVE_MAP_LIST %}data-toggle="tooltip"
2323
data-original-title="{{ _('display.municipality.obs') }}"{% endif %}>
2424
<span class="d-none">{{ taxon.group2_inpn }}</span>

0 commit comments

Comments
 (0)