apply backport

release-11.2.8+security-01 v11.2.8+security-01
nmarrs 3 months ago committed by Kevin Minehart
parent 52e65459b7
commit b5b5a3ec16
  1. 3
      public/app/plugins/panel/xychart/v2/scatter.ts

@ -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';

Loading…
Cancel
Save