Skip to content

Commit a0ed98b

Browse files
committed
Error handling while searching
1 parent c222784 commit a0ed98b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/components/rightSidePanel/layout/SidePanelSearch.vue

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,13 @@ watch(
3434
cleanupFn?.()
3535
})
3636
37-
void searcher(debouncedSearchQuery.value, (cb) => (cleanupFn = cb)).finally(
38-
() => {
37+
void searcher(debouncedSearchQuery.value, (cb) => (cleanupFn = cb))
38+
.catch((error) => {
39+
console.error('[SidePanelSearch] searcher failed', error)
40+
})
41+
.finally(() => {
3942
if (!isCleanup) isQuerying.value = false
40-
}
41-
)
43+
})
4244
},
4345
{ immediate: true }
4446
)

0 commit comments

Comments
 (0)