Skip to content

Commit

Permalink
fix deprecation in latest twig
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpapst committed Nov 21, 2024
1 parent ab9f323 commit 177e496
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/components/progress_bar.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
{% set _animated = item.animated ?? false %}

{% set _autoLabel = item.autoLabel ?? false %}
{% set _label = item.label ?? _autoLabel and not _indeterminate ? percent ~ '%' : '' %}
{% set _label = item.label ?? (_autoLabel and not _indeterminate ? percent ~ '%' : '') %}
{% set _labelVisible = _label != '' and (item.labelVisible ?? true) %}

{% set _color = item.color ?? '' %}
Expand Down

0 comments on commit 177e496

Please sign in to comment.