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

@@ -43,6 +43,10 @@ const SuperNoteConverter = ({
}, [component, noteType])
const convertedContent = useMemo(() => {
if (note.text.length === 0) {
return note.text
}
return exportSuperNote(note, format)
}, [format, note])