mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-17 05:02:23 +08:00
Revert "Update lib/ui/src/components/sidebar/Search.tsx"
This reverts commit ea9a9a84e556749c9c48373d2a1f1c5464079138.
This commit is contained in:
parent
871fe72376
commit
0609779489
@ -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);
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user