Skip to content

Commit

Permalink
UHF-7444: Add check for empty array item for metadata wrapper template
Browse files Browse the repository at this point in the history
  • Loading branch information
teroelonen committed Nov 18, 2022
1 parent c9dc8ce commit 46eae22
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions templates/misc/metadata-wrapper.twig
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
<div class="metadata-container">
{% for item in items %}
{% include '@hdbt/misc/metadata-item.twig' with {
item_icon: item.icon,
item_label: item.label,
item_content: item.content
}%}
{% if item %}
{% include '@hdbt/misc/metadata-item.twig' with {
item_icon: item.icon,
item_label: item.label,
item_content: item.content
}%}
{% endif %}
{% endfor %}
</div>

0 comments on commit 46eae22

Please sign in to comment.