diff --git a/modern/src/App.js b/modern/src/App.js index 8dd5e4c5..411599b4 100644 --- a/modern/src/App.js +++ b/modern/src/App.js @@ -511,11 +511,12 @@ function DummyComponent({ node }) { } function XmlChildren({ node }) { - const childNodes = node.children || []; - const children = childNodes.map((childNode, i) => ( + if (node.children == null) { + return null; + } + return node.children.map((childNode, i) => ( )); - return children; } // Given a skin XML node, pick which component to use, and render it.