FIX search in refs

This commit is contained in:
Norbert de Langen 2020-02-14 13:42:19 +01:00
parent ca7a6abe87
commit 115e3d01d5
No known key found for this signature in database
GPG Key ID: 976651DA156C2825

View File

@ -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))
);