mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-28 05:28:05 +03:00
fix: content render receiving undefined when converting to vnode (#2016)
This commit is contained in:
parent
ac4188274c
commit
59e418e2e0
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue