From a7858d44bd989fdd01bc8040d018c129376f3741 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Fri, 12 Sep 2025 02:10:19 +0200 Subject: [PATCH] Fix empty content --- web/components/widgets/editor.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/components/widgets/editor.tsx b/web/components/widgets/editor.tsx index 07a5118d..0929704f 100644 --- a/web/components/widgets/editor.tsx +++ b/web/components/widgets/editor.tsx @@ -215,6 +215,8 @@ function RichContent(props: { }) { const { className, content, size = 'md' } = props + if (!content) return null + const jsxContent = useMemo(() => { try { return generateReact(content, [