From 2383d3db34a973d21d508007229996aa405720fe Mon Sep 17 00:00:00 2001 From: Aman Harwara Date: Sat, 23 Dec 2023 13:00:50 +0530 Subject: [PATCH] chore: fix issue with creating new Super notes [skip e2e] --- .../javascripts/Components/SuperEditor/BlocksEditorComposer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/web/src/javascripts/Components/SuperEditor/BlocksEditorComposer.tsx b/packages/web/src/javascripts/Components/SuperEditor/BlocksEditorComposer.tsx index eb3e6c6b0..71fc81a13 100644 --- a/packages/web/src/javascripts/Components/SuperEditor/BlocksEditorComposer.tsx +++ b/packages/web/src/javascripts/Components/SuperEditor/BlocksEditorComposer.tsx @@ -24,7 +24,7 @@ export const BlocksEditorComposer: FunctionComponent theme: BlocksEditorTheme, editable: !readonly, onError: (error: Error) => console.error(error), - editorState: initialValue, + editorState: typeof initialValue === 'string' && initialValue.length === 0 ? undefined : initialValue, nodes: [...nodes, ...BlockEditorNodes], }} >