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 6d9abc6 commit 54f6135Copy full SHA for 54f6135
app/composables/npm/useUserPackages.ts
@@ -215,6 +215,7 @@ export function useUserPackages(username: MaybeRefOrGetter<string>) {
215
216
/** Whether there are more results available to load (npm path only) */
217
const hasMore = computed(() => {
218
+ if (!toValue(username)) return false
219
// Algolia fetches everything in one request; only npm needs pagination
220
if (activeProvider.value !== 'npm') return false
221
if (!cache.value) return true
0 commit comments