From 77950e48c76f4a3b29d01831d43039caba29888a Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期二, 18 十一月 2025 14:12:42 +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