From 78955c8fd4cb9d8b145599952a6b7e04486d21ed Mon Sep 17 00:00:00 2001 From: "grafana-delivery-bot[bot]" <132647405+grafana-delivery-bot[bot]@users.noreply.github.com> Date: Wed, 3 Apr 2024 11:17:20 -0400 Subject: [PATCH] [v11.0.x] datatrails: do not show the "le" label (#85504) datatrails: do not show the "le" label (#85114) fix: do not show the "le" label (cherry picked from commit 5d477d711a5027527e36674286d9833edbfa2cd9) Co-authored-by: Darren Janeczek <38694490+darrenjaneczek@users.noreply.github.com> --- public/app/features/trails/ActionTabs/utils.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/public/app/features/trails/ActionTabs/utils.ts b/public/app/features/trails/ActionTabs/utils.ts index 9fadb16db3a..9926c88e425 100644 --- a/public/app/features/trails/ActionTabs/utils.ts +++ b/public/app/features/trails/ActionTabs/utils.ts @@ -15,9 +15,15 @@ export function getLabelOptions(scenObject: SceneObject, variable: QueryVariable for (const option of variable.getOptionsForSelect()) { const filterExists = filters.find((f) => f.key === option.value); - if (!filterExists) { - labelOptions.push({ label: option.label, value: String(option.value) }); + + if (option.label === 'le') { + // Do not show the "le" label + continue; } + if (filterExists) { + continue; + } + labelOptions.push({ label: option.label, value: String(option.value) }); } return labelOptions;