Skip to content

Commit

Permalink
EWPP-2510: Do not print empty primary meta items.
Browse files Browse the repository at this point in the history
  • Loading branch information
22Alexandra committed Sep 21, 2022
1 parent 2540889 commit 34e80a4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion templates/patterns/list_item/pattern-list-item.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@
{% if meta is not empty and meta is iterable %}
{% set primary_meta = [] %}
{% for item in meta %}
{% set primary_meta = primary_meta|merge([item]) %}
{% if item is not empty %}
{% set primary_meta = primary_meta|merge([item]) %}
{% endif %}
{% endfor %}
{% endif %}

Expand Down

0 comments on commit 34e80a4

Please sign in to comment.