fix: prompt editor insert quickly (#4004)
This commit is contained in:
parent
05cab85579
commit
8b3edac091
1 changed files with 1 additions and 1 deletions
|
|
@ -115,7 +115,7 @@ const PromptEditor: FC<PromptEditorProps> = ({
|
||||||
WorkflowVariableBlockNode,
|
WorkflowVariableBlockNode,
|
||||||
VariableValueBlockNode,
|
VariableValueBlockNode,
|
||||||
],
|
],
|
||||||
editorState: value ? textToEditorState(value as string) : null,
|
editorState: textToEditorState(value || ''),
|
||||||
onError: (error: Error) => {
|
onError: (error: Error) => {
|
||||||
throw error
|
throw error
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue