nested content null check
@@ -4,7 +4,7 @@ import * as React from 'react'
* uses given set of components to render DocElements like links, paragraphs, code blocks, etc
*/
const DocElement = ({content, elementsLibrary}) => {
- return (<span>{content.map((item, idx) => {
+ return (<span>{!content ? null : content.map((item, idx) => {
const ElementToUse = elementsLibrary[item.type]
if (!ElementToUse) {
console.warn("can't find component to display", item)
