We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ec42e0 commit 3296340Copy full SHA for 3296340
app/pages/index.vue
@@ -7,6 +7,7 @@ const { focused: isSearchFocused } = useFocus(searchInputRef)
7
8
async function search() {
9
const query = searchQuery.value.trim()
10
+ if (!query) return
11
await navigateTo({
12
path: '/search',
13
query: query ? { q: query } : undefined,
0 commit comments