diff --git a/src/runtime/components/Markdown.vue b/src/runtime/components/Markdown.vue index c53c32e44..74b03a331 100644 --- a/src/runtime/components/Markdown.vue +++ b/src/runtime/components/Markdown.vue @@ -72,7 +72,9 @@ export default { console.warn('Markdown: This is likely to happen when you use `unwrap` attribute.') } else { const tmpNode = Array.isArray(node) ? node[0] : node - Object.assign(tmpNode.data, ctx.data) + if (tmpNode?.data) { + Object.assign(tmpNode.data, ctx.data) + } } return node