mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-08 04:50:12 +02:00
fix type errors
This commit is contained in:
@@ -227,11 +227,11 @@ export const createFuseForLibraryItem = <T extends FuseSearchableItem>(
|
||||
|
||||
export const searchLibraryItems = <T extends FuseSearchableItem>(
|
||||
items: T[],
|
||||
searchTerm: string,
|
||||
searchTerm: string | undefined,
|
||||
itemType: LibraryItem,
|
||||
options?: CreateFuseOptions,
|
||||
): T[] => {
|
||||
if (!searchTerm.trim()) {
|
||||
if (!searchTerm?.trim()) {
|
||||
return items;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user