fix: prompt editor insert quickly (#4004)

This commit is contained in:
zxhlyh 2024-04-30 14:25:21 +08:00 committed by GitHub
parent 05cab85579
commit 8b3edac091
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -115,7 +115,7 @@ const PromptEditor: FC<PromptEditorProps> = ({
WorkflowVariableBlockNode,
VariableValueBlockNode,
],
editorState: value ? textToEditorState(value as string) : null,
editorState: textToEditorState(value || ''),
onError: (error: Error) => {
throw error
},