Revert "Update lib/ui/src/components/sidebar/Search.tsx"

This reverts commit ea9a9a84e556749c9c48373d2a1f1c5464079138.
This commit is contained in:
Gert Hengeveld 2020-10-07 14:47:22 +02:00
parent 871fe72376
commit 0609779489

View File

@ -162,7 +162,7 @@ export const Search: FunctionComponent<{
const selectStory = useCallback(
(id: string, refId: string) => {
api?.selectStory(id, undefined, { ref: refId !== DEFAULT_REF_ID && refId });
if (api) api.selectStory(id, undefined, { ref: refId !== DEFAULT_REF_ID && refId });
inputRef.current.blur();
showAllComponents(false);
},