From 3b415b6982f919aa503349727569086afd04e789 Mon Sep 17 00:00:00 2001 From: "nabi.lee" Date: Sun, 3 Sep 2023 15:52:54 +0900 Subject: [PATCH] =?UTF-8?q?initialContent=EC=9D=98=20length=EA=B0=80=20?= =?UTF-8?q?=EC=97=86=EC=9D=84=20=EB=95=8C=20undefined=EB=A5=BC=20=EB=B0=98?= =?UTF-8?q?=ED=99=98=ED=95=98=EB=8F=84=EB=A1=9D=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/blocknote/hooks/useEditor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/blocknote/hooks/useEditor.ts b/src/components/blocknote/hooks/useEditor.ts index 5a83c33..2baa186 100644 --- a/src/components/blocknote/hooks/useEditor.ts +++ b/src/components/blocknote/hooks/useEditor.ts @@ -33,7 +33,7 @@ export function useEditor( const editor = useBlockNote( { editable: !disabled, - initialContent: initialContent, + initialContent: initialContent?.length ? initialContent : undefined, onEditorContentChange: debounce( 750, (editor: BlockNoteEditor) => {