Skip to content

Commit

Permalink
IconInline: fix an error where a variable might not be defined
Browse files Browse the repository at this point in the history
  • Loading branch information
titouanmathis committed Jul 16, 2024
1 parent fb74c19 commit a2a67b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ui/atoms/Icon/IconInline.twig
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
{{ source('@svg/%s.svg'|format(name), ignore_missing = true) }}
{%- endset -%}

{% if icon is not empty or not ignore_missing %}
{% if icon is not empty or not (ignore_missing ?? true) %}
<span {{ html_attributes(attributes) }}>
{{ icon }}
</span>
Expand Down

0 comments on commit a2a67b3

Please sign in to comment.