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

This commit is contained in:
Devin W. Hurley 2022-07-28 19:41:58 -04:00 committed by GitHub
parent 6b34c7182c
commit ee5f146981
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) {