From 8b3edac0917a31cd90ab9280d82e54284c7f77e0 Mon Sep 17 00:00:00 2001 From: zxhlyh Date: Tue, 30 Apr 2024 14:25:21 +0800 Subject: [PATCH] fix: prompt editor insert quickly (#4004) --- web/app/components/base/prompt-editor/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/components/base/prompt-editor/index.tsx b/web/app/components/base/prompt-editor/index.tsx index 4b7315c742..7790eecbbd 100644 --- a/web/app/components/base/prompt-editor/index.tsx +++ b/web/app/components/base/prompt-editor/index.tsx @@ -115,7 +115,7 @@ const PromptEditor: FC = ({ WorkflowVariableBlockNode, VariableValueBlockNode, ], - editorState: value ? textToEditorState(value as string) : null, + editorState: textToEditorState(value || ''), onError: (error: Error) => { throw error },