Skip to content

Commit

Permalink
The spaceless filter is deprecated as of Twig 3.12.
Browse files Browse the repository at this point in the history
  • Loading branch information
xDeSwa authored and Arkounay committed Sep 12, 2024
1 parent 90f7dd0 commit bb22c68
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions templates/_ux_media_widget.html.twig
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{% set collection = form.parent.vars.collection|default(false) %}
{% apply spaceless %}
{%- set attr = attr|default([])|merge({
'class': attr.class|default('ux-media mb-2 border bg-white rounded'),
'data-controller': attr['data-controller']|default('arkounay--ux-media--media'),
Expand Down Expand Up @@ -199,4 +198,4 @@
</button>
</div>
</div>
{% endapply %}

0 comments on commit bb22c68

Please sign in to comment.