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: prevent http node overwrite on open (#4127)

Pascal M6563cb6ec637
diff --git a/web/app/components/workflow/nodes/http/use-config.ts b/web/app/components/workflow/nodes/http/use-config.ts
index 768a67617aa..8be66a7c35a 100644
--- a/web/app/components/workflow/nodes/http/use-config.ts
+++ b/web/app/components/workflow/nodes/http/use-config.ts
@@ -29,8 +29,8 @@ const useConfig = (id: string, payload: HttpNodeType) => {
const isReady = defaultConfig && Object.keys(defaultConfig).length > 0
if (isReady) {
setInputs({
- ...inputs,
...defaultConfig,
+ ...inputs,
})
}
// eslint-disable-next-line react-hooks/exhaustive-deps