Skip to content

Commit d083e21

Browse files
authored
fix: search restore (#1450)
1 parent 3faaf04 commit d083e21

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/composables/useGlobalSearch.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export function useGlobalSearch() {
2626
urlQuery => {
2727
const value = normalizeSearchParam(urlQuery)
2828
if (!value) searchQuery.value = ''
29+
if (!searchQuery.value) searchQuery.value = value
2930
},
3031
)
3132
const updateUrlQueryImpl = (value: string, provider: 'npm' | 'algolia') => {

0 commit comments

Comments
 (0)