Ver código fonte

fix: text.split (#17842)

tags/1.3.0
crazywoola 6 meses atrás
pai
commit
7ee5cc80a2
Nenhuma conta vinculada ao e-mail do autor do commit
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1
    1
      web/app/components/base/prompt-editor/utils.ts

+ 1
- 1
web/app/components/base/prompt-editor/utils.ts Ver arquivo

@@ -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: {

Carregando…
Cancelar
Salvar