fix: content render receiving undefined when converting to vnode (#2016)

pull/2017/head
Joaquín Sánchez 2023-04-24 20:46:17 +02:00 zatwierdzone przez GitHub
rodzic ac4188274c
commit 59e418e2e0
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -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)