Skip to content

Commit 5fb23d4

Browse files
committed
fix: ensure only nromalize a scoped slot when it is present
1 parent 4c2c6f0 commit 5fb23d4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/core/vdom/helpers/normalize-scoped-slots.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ export function normalizeScopedSlots (
1212
} else {
1313
res = {}
1414
for (const key in slots) {
15-
res[key] = normalizeScopedSlot(slots[key])
15+
if (slots[key]) {
16+
res[key] = normalizeScopedSlot(slots[key])
17+
}
1618
}
1719
}
1820
// expose normal slots on scopedSlots

0 commit comments

Comments
 (0)