Skip to content

Commit 3c715cf

Browse files
committed
fix
1 parent b1ab6c5 commit 3c715cf

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

app/components/Header/SearchBox.vue

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const searchQuery = shallowRef(normalizeSearchParam(route.query.q))
2929
// Pages that have their own local filter using ?q
3030
const pagesWithLocalFilter = new Set(['~username', 'org'])
3131
32-
function updateUrlQueryImpl(value: string) {
32+
function updateUrlQuery(value: string) {
3333
// Don't navigate away from pages that use ?q for local filtering
3434
if (pagesWithLocalFilter.has(route.name)) {
3535
return
@@ -46,16 +46,6 @@ function updateUrlQueryImpl(value: string) {
4646
})
4747
}
4848
49-
const updateUrlQueryNpm = debounce(updateUrlQueryImpl, 250)
50-
const updateUrlQueryAlgolia = debounce(updateUrlQueryImpl, 80)
51-
52-
const updateUrlQuery = Object.assign(
53-
(value: string) => (isAlgolia.value ? updateUrlQueryAlgolia : updateUrlQueryNpm)(value),
54-
{
55-
flush: () => (isAlgolia.value ? updateUrlQueryAlgolia : updateUrlQueryNpm).flush(),
56-
},
57-
)
58-
5949
watch(searchQuery, value => {
6050
if (route.name === 'search') {
6151
updateUrlQuery(value)

0 commit comments

Comments
 (0)