Tempo: Allow `!~` in Search tab (#78315)

pull/77450/head
Fabrizio 2 years ago committed by GitHub
parent a929e3f2cf
commit f3b23611c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      public/app/plugins/datasource/tempo/SearchTraceQLEditor/SearchField.tsx

@ -88,7 +88,12 @@ const SearchField = ({
}
useEffect(() => {
if (Array.isArray(filter.value) && filter.value.length > 1 && filter.operator !== '=~') {
if (
Array.isArray(filter.value) &&
filter.value.length > 1 &&
filter.operator !== '=~' &&
filter.operator !== '!~'
) {
setPrevOperator(filter.operator);
updateFilter({ ...filter, operator: '=~' });
}

Loading…
Cancel
Save