Skip to content

Commit

Permalink
initialContent의 length가 없을 때 undefined를 반환하도록 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
nabi-chan committed Sep 3, 2023
1 parent 2c226ec commit 3b415b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/blocknote/hooks/useEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function useEditor(
const editor = useBlockNote(
{
editable: !disabled,
initialContent: initialContent,
initialContent: initialContent?.length ? initialContent : undefined,
onEditorContentChange: debounce(
750,
(editor: BlockNoteEditor<BlockSchema>) => {
Expand Down

0 comments on commit 3b415b6

Please sign in to comment.