diff --git a/framework/core/js/lib/utils/extractText.js b/framework/core/js/lib/utils/extractText.js index faa6bd048..13d55862e 100644 --- a/framework/core/js/lib/utils/extractText.js +++ b/framework/core/js/lib/utils/extractText.js @@ -7,7 +7,7 @@ export default function extractText(vdom) { if (vdom instanceof Array) { return vdom.map(element => extractText(element)).join(''); - } else if (typeof vdom === 'object') { + } else if (typeof vdom === 'object' && vdom !== null) { return extractText(vdom.children); } else { return vdom;