We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f6de93 commit d62de7cCopy full SHA for d62de7c
1 file changed
app/composables/npm/useSearch.ts
@@ -441,9 +441,9 @@ export function useSearch(
441
442
watch(
443
[() => asyncData.data.value.suggestions, () => npmSuggestions.data.value.suggestions],
444
- ([algoliaSuggestions, npmSuggestions]) => {
445
- if (algoliaSuggestions.length || npmSuggestions.length) {
446
- suggestions.value = algoliaSuggestions.length ? algoliaSuggestions : npmSuggestions
+ ([algoliaSuggestions, npmSuggestionsValue]) => {
+ if (algoliaSuggestions.length || npmSuggestionsValue.length) {
+ suggestions.value = algoliaSuggestions.length ? algoliaSuggestions : npmSuggestionsValue
447
}
448
},
449
{ immediate: true },
0 commit comments