chore: fix error when converting empty super note

This commit is contained in:
Aman Harwara
2023-04-27 18:12:23 +05:30
parent d1009e368a
commit b34ab6ab28
2 changed files with 5 additions and 1 deletions

View File

@@ -138,7 +138,7 @@ const ChangeEditorMenu: FunctionComponent<ChangeEditorMenuProps> = ({
return
}
if (note.noteType === NoteType.Super) {
if (note.noteType === NoteType.Super && note.text.length > 0) {
setPendingConversionItem(itemToBeSelected)
handleDisableClickoutsideRequest?.()
return