fix: markdown wrapper causing crash if chieldren is empty

This commit is contained in:
canove
2021-01-19 10:04:44 -03:00
parent 74e17a9f04
commit 0b74097c67

View File

@@ -178,6 +178,8 @@ const MarkdownWrapper = ({ children }) => {
return markdownOptions;
}, []);
if (!children) return null;
return <Markdown options={options}>{children}</Markdown>;
};