1
0
mirror of https://github.com/elk-zone/elk synced 2024-11-23 14:46:08 +09:00

fix: prevent empty search keyword to send invalid request (#2676)

This commit is contained in:
TAKAHASHI Shuuji 2024-03-11 03:37:32 +09:00 committed by GitHub
parent 0fd9374e8c
commit dfbe2e080d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -63,7 +63,7 @@ export function useSearch(query: MaybeRefOrGetter<string>, options: UseSearchOpt
})
debouncedWatch(() => resolveUnref(query), async () => {
if (!q || !isHydrated.value)
if (!q.value || !isHydrated.value)
return
loading.value = true