diff --git a/web-app/src/hooks/useThreads.ts b/web-app/src/hooks/useThreads.ts index b3cdd7951..eac147ebe 100644 --- a/web-app/src/hooks/useThreads.ts +++ b/web-app/src/hooks/useThreads.ts @@ -66,7 +66,7 @@ export const useThreads = create()( } let currentIndex = searchIndex - if (!currentIndex) { + if (!currentIndex?.find) { currentIndex = new Fzf(Object.values(threads), { selector: (item: Thread) => item.title, })