mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-20 04:39:20 +00:00
fix: markdown wrapper causing crash if chieldren is empty
This commit is contained in:
@@ -178,6 +178,8 @@ const MarkdownWrapper = ({ children }) => {
|
|||||||
return markdownOptions;
|
return markdownOptions;
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
if (!children) return null;
|
||||||
|
|
||||||
return <Markdown options={options}>{children}</Markdown>;
|
return <Markdown options={options}>{children}</Markdown>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user