Quellcode durchsuchen

fix: prompt editor insert quickly (#4004)

zxhlyh vor 1 Jahr
Ursprung
Commit
8b3edac091
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      web/app/components/base/prompt-editor/index.tsx

+ 1 - 1
web/app/components/base/prompt-editor/index.tsx

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