Skip to content

Commit

Permalink
fix(snippets): search #117
Browse files Browse the repository at this point in the history
  • Loading branch information
antonreshetov committed Jul 9, 2022
1 parent fbd7ee0 commit beb8591
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/renderer/components/snippets/SnippetListHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ const inputRef = ref<HTMLInputElement>()
const query = computed({
get: () => snippetStore.searchQuery,
set: useDebounceFn(v => {
set: useDebounceFn(async v => {
snippetStore.searchQuery = v
snippetStore.setSnippetsByAlias('all')
await snippetStore.setSnippetsByAlias('all')
snippetStore.search(v!)
track('snippets/search')
}, 300)
Expand Down

0 comments on commit beb8591

Please sign in to comment.