mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-14 05:05:59 +08:00
fix: prompt editor insert quickly (#4004)
This commit is contained in:
parent
05cab85579
commit
8b3edac091
@ -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…
x
Reference in New Issue
Block a user