diff --git a/packages/client/src/slate/RichText.tsx b/packages/client/src/slate/RichText.tsx
index 5a36b04b1..7b882ca55 100644
--- a/packages/client/src/slate/RichText.tsx
+++ b/packages/client/src/slate/RichText.tsx
@@ -25,12 +25,12 @@ const DEFAULT_VALUE = [
];
export const RichText = (props: any) => {
- const { value = DEFAULT_VALUE, placeholder = '', className, readOnly, autop = true, ellipsis, onChange } = props;
+ const { value, placeholder = '', className, readOnly, autop = true, ellipsis, onChange } = props;
const renderElement = useCallback((props) => , []);
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 || DEFAULT_VALUE));
Editor.normalize(editor, { force: true });
return editor.children;
}, [editor, value]);