Skip to content

Commit

Permalink
[ML] Fix error handling in job search bar (#104759)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgowdyelastic authored and kibanamachine committed Jul 8, 2021
1 parent 0d5035e commit 311905c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const JobFilterBar: FC<JobFilterBarProps> = ({ queryText, setFilters }) =
}, [queryText]);

const onChange: EuiSearchBarProps['onChange'] = ({ query, error: queryError }) => {
if (error) {
if (queryError) {
setError(queryError);
} else {
setFilters(query);
Expand Down

0 comments on commit 311905c

Please sign in to comment.