Skip to content

Commit

Permalink
fix: content render receiving undefined when converting to vnode (#2016)
Browse files Browse the repository at this point in the history
  • Loading branch information
userquin authored Apr 24, 2023
1 parent ac41882 commit 59e418e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions composables/content-render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 59e418e

Please sign in to comment.