From 177e49644be6fa298d3afa04a412b8351864f206 Mon Sep 17 00:00:00 2001 From: Kevin Papst Date: Thu, 21 Nov 2024 18:10:43 +0100 Subject: [PATCH] fix deprecation in latest twig --- templates/components/progress_bar.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/components/progress_bar.html.twig b/templates/components/progress_bar.html.twig index e654a53..0f5f0d7 100644 --- a/templates/components/progress_bar.html.twig +++ b/templates/components/progress_bar.html.twig @@ -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 ?? '' %}