mirror of
https://github.com/grafana/grafana.git
synced 2026-07-30 00:08:10 -05:00
Tempo: Fix empty values in TraceQL filters (#76544)
Fix empty values in TraceQL filters
This commit is contained in:
@@ -81,7 +81,9 @@ const SearchField = ({
|
||||
setError,
|
||||
query,
|
||||
]);
|
||||
if (filter.value && options && !options.find((o) => o === filter.value)) {
|
||||
|
||||
// Add selected option if it doesn't exist in the current list of options
|
||||
if (filter.value && !Array.isArray(filter.value) && options && !options.find((o) => o.value === filter.value)) {
|
||||
options.push({ label: filter.value.toString(), value: filter.value.toString(), type: filter.valueType });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user