mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-17 00:56:01 +08:00
fix: text not string
This commit is contained in:
parent
c74424ed85
commit
9ce9a52a86
@ -296,7 +296,7 @@ export function $splitNodeContainingQuery(match: MenuTextMatch): TextNode | null
|
||||
}
|
||||
|
||||
export function textToEditorState(text: string) {
|
||||
const paragraph = text.split('\n')
|
||||
const paragraph = text ? text.split('\n') : []
|
||||
|
||||
return JSON.stringify({
|
||||
root: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user