Skip to content

Commit

Permalink
fix: ensure only nromalize a scoped slot when it is present
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jan 10, 2019
1 parent 4c2c6f0 commit 5fb23d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/vdom/helpers/normalize-scoped-slots.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ export function normalizeScopedSlots (
} else {
res = {}
for (const key in slots) {
res[key] = normalizeScopedSlot(slots[key])
if (slots[key]) {
res[key] = normalizeScopedSlot(slots[key])
}
}
}
// expose normal slots on scopedSlots
Expand Down

0 comments on commit 5fb23d4

Please sign in to comment.