mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 22:21:27 +08:00
FIX search in refs
This commit is contained in:
parent
ca7a6abe87
commit
115e3d01d5
@ -195,7 +195,9 @@ const fuse = memoize(5)(
|
||||
const exactMatch = memoize(1)(filter => (i: Item) =>
|
||||
(isStory(i) && i.kind.includes(filter)) ||
|
||||
(i.name && i.name.includes(filter)) ||
|
||||
(i.parameters && i.parameters.fileName && i.parameters.fileName.includes(filter)) ||
|
||||
(i.parameters &&
|
||||
typeof i.parameters.fileName === 'string' &&
|
||||
i.parameters.fileName.includes(filter)) ||
|
||||
(i.parameters && typeof i.parameters.notes === 'string' && i.parameters.notes.includes(filter))
|
||||
);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user