소스 검색

fix: text.split (#17842)

tags/1.3.0
crazywoola 6 달 전
부모
커밋
7ee5cc80a2
No account linked to committer's email address
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      web/app/components/base/prompt-editor/utils.ts

+ 1
- 1
web/app/components/base/prompt-editor/utils.ts 파일 보기

@@ -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…
취소
저장