Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: prompt editor insert quickly (#4004)

zxhlyh8b3edac0917a
diff --git a/web/app/components/base/prompt-editor/index.tsx b/web/app/components/base/prompt-editor/index.tsx
index 4b7315c7428..7790eecbbdf 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<PromptEditorProps> = ({
WorkflowVariableBlockNode,
VariableValueBlockNode,
],
- editorState: value ? textToEditorState(value as string) : null,
+ editorState: textToEditorState(value || ''),
onError: (error: Error) => {
throw error
},