From 96be7c449d40484e191b53804ee4f9832b991f29 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Sun, 8 Oct 2017 08:59:54 +1030 Subject: [PATCH] Fix extractText breaking in some cases --- framework/core/js/lib/utils/extractText.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;