Apply security patch 380-202504030832.patch (#104489)

backport change

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
This commit is contained in:
grafana-delivery-bot[bot]
2025-04-24 18:39:27 +00:00
committed by GitHub
co-authored by nmarrs
parent f3b9a65883
commit 238ea51922
+2 -1
View File
@@ -641,7 +641,8 @@ function fieldValueColors(f: Field, theme: GrafanaTheme2): FieldColorValues {
let lasti = steps.length - 1;
for (let i = lasti; i > 0; i--) {
conds += `v >= ${steps[i].value} ? ${i} : `;
let rhs = Number(steps[i].value);
conds += `v >= ${rhs} ? ${i} : `;
}
conds += '0';