diff --git a/packages/client/src/slate/RichText.tsx b/packages/client/src/slate/RichText.tsx index f6f0bc71d..5a36b04b1 100644 --- a/packages/client/src/slate/RichText.tsx +++ b/packages/client/src/slate/RichText.tsx @@ -30,7 +30,7 @@ export const RichText = (props: any) => { const renderLeaf = useCallback((props) => , []); const editor = useMemo(() => withHistory(withReact(createEditor() as ReactEditor)), []); const slateValue = useMemo(() => { - editor.children = JSON.parse(JSON.stringify(value)); + editor.children = JSON.parse(JSON.stringify(value || [])); Editor.normalize(editor, { force: true }); return editor.children; }, [editor, value]);