datatrails: do not show the "le" label (#85114)

fix: do not show the "le" label
pull/84911/head
Darren Janeczek 1 year ago committed by GitHub
parent 4cda34ff7d
commit 5d477d711a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 10
      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;

Loading…
Cancel
Save