Skip to content

Commit

Permalink
type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Michail Yasonik committed Sep 14, 2020
1 parent 8eee3ce commit ea4825b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ export function SearchBar({ globalSearch, navigateToUrl }: Props) {
};

const onChange = (selected: EuiSelectableTemplateSitewideOption[]) => {
// @ts-ignore - ts error is "union type is too complex to express"
const { url } = selected.find(({ checked }) => checked === 'on');

navigateToUrl(url);
Expand Down

0 comments on commit ea4825b

Please sign in to comment.