Skip to content

Commit d62de7c

Browse files
committed
fix: rename arg in use-search
1 parent 1f6de93 commit d62de7c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

app/composables/npm/useSearch.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -441,9 +441,9 @@ export function useSearch(
441441

442442
watch(
443443
[() => asyncData.data.value.suggestions, () => npmSuggestions.data.value.suggestions],
444-
([algoliaSuggestions, npmSuggestions]) => {
445-
if (algoliaSuggestions.length || npmSuggestions.length) {
446-
suggestions.value = algoliaSuggestions.length ? algoliaSuggestions : npmSuggestions
444+
([algoliaSuggestions, npmSuggestionsValue]) => {
445+
if (algoliaSuggestions.length || npmSuggestionsValue.length) {
446+
suggestions.value = algoliaSuggestions.length ? algoliaSuggestions : npmSuggestionsValue
447447
}
448448
},
449449
{ immediate: true },

0 commit comments

Comments
 (0)