Skip to content

Commit

Permalink
Merge pull request #484 from City-of-Helsinki/UHF-7444_hide_salary_in…
Browse files Browse the repository at this point in the history
…formation_when_not_provided

UHF-7444: Add check for empty array item for metadata wrapper template
  • Loading branch information
teroelonen authored Nov 22, 2022
2 parents 9c9a773 + 46eae22 commit 11106cb
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 11106cb

Please sign in to comment.