Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Oct 17, 2023
1 parent 92ea1b8 commit d279c7e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,11 @@ useSeoMeta({
twitterSite: 'nuxt_js'
})
watch(() => search.value?.commandPaletteRef?.query, debounce((query) => {
if (!query) return
watch(() => search.value?.commandPaletteRef?.query, debounce((query: string) => {
if (!query) {
return
}
useTrackEvent('Search', { props: { query, results: `${search.value?.commandPaletteRef.results.length}` } })
}, 500))
Expand Down

0 comments on commit d279c7e

Please sign in to comment.