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

fix: do not show the "le" label
This commit is contained in:
Darren Janeczek 2024-03-26 04:00:25 -04:00 committed by GitHub
parent 4cda34ff7d
commit 5d477d711a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;