[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 5d477d711a)
Co-authored-by: Darren Janeczek <38694490+darrenjaneczek@users.noreply.github.com>
This commit is contained in:
co-authored by
Darren Janeczek
parent
94778c69a3
commit
78955c8fd4
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user