[Security Solution] [Platform] fix autosuggest for exceptions (#137503) (#137544)

(cherry picked from commit ee5f146981)

Co-authored-by: Devin W. Hurley <devin.hurley@elastic.co>
This commit is contained in:
Kibana Machine 2022-07-28 20:56:30 -04:00 committed by GitHub
parent c521360952
commit b8c9ebffa2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View file

@ -197,6 +197,7 @@ describe('use_field_value_autocomplete', () => {
},
query: '',
signal,
useTimeRange: false,
});
});
});
@ -296,6 +297,7 @@ describe('use_field_value_autocomplete', () => {
indexPattern: stubIndexPatternWithFields,
query: '',
signal,
useTimeRange: false,
});
expect(result.current).toEqual(expectedResult);
});

View file

@ -81,6 +81,7 @@ export const useFieldValueAutocomplete = ({
indexPattern: patterns,
query: searchQuery,
signal: abortCtrl.signal,
useTimeRange: false,
});
if (newSuggestions.length === 0) {