wwf
2 天以前 a430284aa21e3ae1f0d5654e55b2ad2852519cc2
app/components/base/prompt-editor/utils.ts
@@ -296,7 +296,7 @@
}
export function textToEditorState(text: string) {
  const paragraph = text && (typeof text === 'string') ? text.split('\n') : ['']
  const paragraph = text ? text.split('\n') : ['']
  return JSON.stringify({
    root: {