Skip to content

Commit 2277c02

Browse files
committed
fix: always wait promises in validate suggestions
1 parent e3e470c commit 2277c02

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

app/composables/npm/useSearch.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@ export function useSearch(
364364

365365
if (!intent || !name) {
366366
suggestionsLoading.value = false
367+
await Promise.all(promises)
367368
return { suggestions: [], packageAvailability: availability }
368369
}
369370

0 commit comments

Comments
 (0)