From 59e418e2e034400970a9343c3faf8b261d529124 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joaqu=C3=ADn=20S=C3=A1nchez?= Date: Mon, 24 Apr 2023 20:46:17 +0200 Subject: [PATCH] fix: content render receiving undefined when converting to vnode (#2016) --- composables/content-render.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/composables/content-render.ts b/composables/content-render.ts index 13d54e82..44d654dc 100644 --- a/composables/content-render.ts +++ b/composables/content-render.ts @@ -66,6 +66,9 @@ function nodeToVNode(node: Node): VNode | string | null { function treeToVNode( input: Node, ): VNode | string | null { + if (!input) + return null + if (input.type === TEXT_NODE) return decode(input.value)