diff --git a/src/core/instance/render-helpers/resolve-slots.ts b/src/core/instance/render-helpers/resolve-slots.ts index 5536f919145..6dc59cde63a 100644 --- a/src/core/instance/render-helpers/resolve-slots.ts +++ b/src/core/instance/render-helpers/resolve-slots.ts @@ -39,6 +39,7 @@ export function resolveSlots( } // ignore slots that contains only whitespace for (const name in slots) { + if (!slots.hasOwnProperty(name)) continue; if (slots[name].every(isWhitespace)) { delete slots[name] }