From 5d477d711a5027527e36674286d9833edbfa2cd9 Mon Sep 17 00:00:00 2001 From: Darren Janeczek <38694490+darrenjaneczek@users.noreply.github.com> Date: Tue, 26 Mar 2024 04:00:25 -0400 Subject: [PATCH] datatrails: do not show the "le" label (#85114) fix: do not show the "le" label --- 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;