mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
datatrails: do not show the "le" label (#85114)
fix: do not show the "le" label
This commit is contained in:
parent
4cda34ff7d
commit
5d477d711a
@ -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…
Reference in New Issue
Block a user