fix: text.split (#17842)

pull/17848/head
crazywoola 10 months ago committed by GitHub
parent 0ccd8bdfa8
commit 7ee5cc80a2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -296,7 +296,7 @@ export function $splitNodeContainingQuery(match: MenuTextMatch): TextNode | null
}
export function textToEditorState(text: string) {
const paragraph = text ? text.split('\n') : ['']
const paragraph = text && (typeof text === 'string') ? text.split('\n') : ['']
return JSON.stringify({
root: {

Loading…
Cancel
Save