From fb8d855e4ca8c907a76183bef516a8ad94db03b3 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 22 Apr 2025 18:21:28 +0000 Subject: [PATCH] apply security patch: release-11.2.9/381-202504030850.patch commit b40a8378d4c42bf3b44951fef9401cfa3e522560 Author: nmarrs Date: Thu Apr 3 09:44:49 2025 +0100 apply backport --- public/app/plugins/panel/xychart/v2/scatter.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/app/plugins/panel/xychart/v2/scatter.ts b/public/app/plugins/panel/xychart/v2/scatter.ts index 904d35ec73a..b4daea89604 100644 --- a/public/app/plugins/panel/xychart/v2/scatter.ts +++ b/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';