mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-17 19:37:02 +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;
|
||||
}, []);
|
||||
|
||||
if (!children) return null;
|
||||
|
||||
return <Markdown options={options}>{children}</Markdown>;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user