fix: handle undefined search index in getFilteredThreads (#5175)
This commit is contained in:
parent
ecef9d7df6
commit
307ea39413
@ -66,7 +66,7 @@ export const useThreads = create<ThreadState>()(
|
||||
}
|
||||
|
||||
let currentIndex = searchIndex
|
||||
if (!currentIndex) {
|
||||
if (!currentIndex?.find) {
|
||||
currentIndex = new Fzf<Thread[]>(Object.values(threads), {
|
||||
selector: (item: Thread) => item.title,
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user