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 },