We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 75d451f + 8533c21 commit 7e39fa7Copy full SHA for 7e39fa7
src/Resources/views/tailwind_2/_header.html.twig
@@ -138,7 +138,7 @@
138
139
140
{% set additionalClass = (not isOnShow) ? (content.option('attr')['class'] ?? '') : '' %}
141
- {% set additionalAttributes = (not isOnShow) ? attr|map((value, attr) => "#{attr}=\"#{value}\"")|join(' ') : '' %}
+ {% set additionalAttributes = (not isOnShow) ? attr|default([])|map((value, attr) => "#{attr}=\"#{value}\"")|join(' ') : '' %}
142
143
<div
144
class="flex justify-end {{ additionalClass }}"
0 commit comments