From dfbe2e080d77c31181e144d739b2cfec66d69239 Mon Sep 17 00:00:00 2001 From: TAKAHASHI Shuuji Date: Mon, 11 Mar 2024 03:37:32 +0900 Subject: [PATCH] fix: prevent empty search keyword to send invalid request (#2676) --- composables/masto/search.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composables/masto/search.ts b/composables/masto/search.ts index bb024946..c17b8a69 100644 --- a/composables/masto/search.ts +++ b/composables/masto/search.ts @@ -63,7 +63,7 @@ export function useSearch(query: MaybeRefOrGetter, options: UseSearchOpt }) debouncedWatch(() => resolveUnref(query), async () => { - if (!q || !isHydrated.value) + if (!q.value || !isHydrated.value) return loading.value = true