chore: fix issue with creating new Super notes [skip e2e]

This commit is contained in:
Aman Harwara
2023-12-23 13:00:50 +05:30
parent a5e2551dd0
commit 2383d3db34

View File

@@ -24,7 +24,7 @@ export const BlocksEditorComposer: FunctionComponent<BlocksEditorComposerProps>
theme: BlocksEditorTheme,
editable: !readonly,
onError: (error: Error) => console.error(error),
editorState: initialValue,
editorState: typeof initialValue === 'string' && initialValue.length === 0 ? undefined : initialValue,
nodes: [...nodes, ...BlockEditorNodes],
}}
>