From 5fb23d4e2971480d14fbee0146e3416a07bc0b9f Mon Sep 17 00:00:00 2001 From: Evan You Date: Wed, 9 Jan 2019 22:47:11 -0500 Subject: [PATCH] fix: ensure only nromalize a scoped slot when it is present --- src/core/vdom/helpers/normalize-scoped-slots.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/vdom/helpers/normalize-scoped-slots.js b/src/core/vdom/helpers/normalize-scoped-slots.js index 239d9a9019b..15aa7b134ee 100644 --- a/src/core/vdom/helpers/normalize-scoped-slots.js +++ b/src/core/vdom/helpers/normalize-scoped-slots.js @@ -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