From a430284aa21e3ae1f0d5654e55b2ad2852519cc2 Mon Sep 17 00:00:00 2001 From: wwf <yearningwang@iqtogether.com> Date: 星期三, 04 六月 2025 15:17:49 +0800 Subject: [PATCH] 初始化 --- app/components/base/prompt-editor/utils.ts | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/app/components/base/prompt-editor/utils.ts b/app/components/base/prompt-editor/utils.ts index 4b2570e..6d7d636 100644 --- a/app/components/base/prompt-editor/utils.ts +++ b/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: { -- Gitblit v1.8.0