Skip to content

Commit

Permalink
chore: fix converting empty plaintext note with only spaces to super
Browse files Browse the repository at this point in the history
  • Loading branch information
amanharwara committed Nov 6, 2023
1 parent 56c522b commit 7a24ea3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default function ImportPlugin({
const [editor] = useLexicalComposerContext()

useEffect(() => {
const dontAllowConversionOfEmptyStringWhichWouldResultInError = text.length === 0
const dontAllowConversionOfEmptyStringWhichWouldResultInError = text.trim().length === 0
if (dontAllowConversionOfEmptyStringWhichWouldResultInError) {
return
}
Expand Down

0 comments on commit 7a24ea3

Please sign in to comment.