mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-02-24 02:46:11 -05:00
Fix empty content
This commit is contained in:
@@ -215,6 +215,8 @@ function RichContent(props: {
|
||||
}) {
|
||||
const { className, content, size = 'md' } = props
|
||||
|
||||
if (!content) return null
|
||||
|
||||
const jsxContent = useMemo(() => {
|
||||
try {
|
||||
return generateReact(content, [
|
||||
|
||||
Reference in New Issue
Block a user