mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-20 20:59:16 +00:00
fix: frontend crashing with some markdown messages
This commit is contained in:
@@ -171,7 +171,7 @@ const MarkdownWrapper = ({ children }) => {
|
|||||||
|
|
||||||
elements.forEach(element => {
|
elements.forEach(element => {
|
||||||
if (!allowedElements.includes(element)) {
|
if (!allowedElements.includes(element)) {
|
||||||
markdownOptions.overrides[element] = el => el.children;
|
markdownOptions.overrides[element] = el => el.children || null;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user