Skip to content

Commit 0b2bbfa

Browse files
committed
add comment
1 parent 051f1e2 commit 0b2bbfa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/composables/useNpmRegistry.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,7 @@ export function useNpmSearch(
337337

338338
const result = packumentToSearchResult(pkg, downloads?.downloads)
339339

340+
// If query changed/outdated, return empty search response
340341
if (q !== toValue(query)) {
341342
return emptySearchResponse
342343
}
@@ -361,6 +362,7 @@ export function useNpmSearch(
361362
60,
362363
)
363364

365+
// If query changed/outdated, return empty search response
364366
if (q !== toValue(query)) {
365367
return emptySearchResponse
366368
}

0 commit comments

Comments
 (0)