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 9d2a356 commit 4480dedCopy full SHA for 4480ded
packages/0/src/composables/useRegistry/index.ts
@@ -188,7 +188,7 @@ export function useRegistry<
188
if (isArray(bucket)) {
189
const next = bucket.filter(v => v !== id)
190
if (next.length === 0) catalog.delete(value)
191
- else if (next.length === 1) catalog.set(value, next[0])
+ else if (next.length === 1) catalog.set(value, next[0]!)
192
else catalog.set(value, next)
193
} else if (bucket === id) {
194
catalog.delete(value)
0 commit comments