apply backport

This commit is contained in:
nmarrs
2025-04-07 09:26:00 -05:00
committed by Kevin Minehart
parent a7485830e1
commit 18c0fcecf2
@@ -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';