Skip to content

Commit 59822e6

Browse files
committed
Fixes a runtime error (Impossible to access an attribute ("value") on a double variable...) when accessing the cache panel (@see #35419)
1 parent ed97879 commit 59822e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Resources/views/Collector/cache.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@
108108
<div class="metric">
109109
<span class="value">
110110
{% if key == 'time' %}
111-
{{ '%0.2f'|format(1000 * value.value) }} <span class="unit">ms</span>
111+
{{ '%0.2f'|format(1000 * value) }} <span class="unit">ms</span>
112112
{% elseif key == 'hit_read_ratio' %}
113-
{{ value.value ?? 0 }} <span class="unit">%</span>
113+
{{ value ?? 0 }} <span class="unit">%</span>
114114
{% else %}
115115
{{ value }}
116116
{% endif %}

0 commit comments

Comments
 (0)