fix: frontend crashing with some markdown messages

This commit is contained in:
canove
2021-01-19 12:31:36 -03:00
parent 0b74097c67
commit e42b34dd69

View File

@@ -171,7 +171,7 @@ const MarkdownWrapper = ({ children }) => {
elements.forEach(element => {
if (!allowedElements.includes(element)) {
markdownOptions.overrides[element] = el => el.children;
markdownOptions.overrides[element] = el => el.children || null;
}
});