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: Cannot modify values when startNode has defaultValue (#25595)

17hz635e7d3e7014
diff --git a/web/app/components/workflow/panel/inputs-panel.tsx b/web/app/components/workflow/panel/inputs-panel.tsx
index f5cdce2e7ea..aca9f8653df 100644
--- a/web/app/components/workflow/panel/inputs-panel.tsx
+++ b/web/app/components/workflow/panel/inputs-panel.tsx
@@ -52,6 +52,8 @@ const InputsPanel = ({ onRun }: Props) => {
startVariables.forEach((variable) => {
if (variable.default)
initialInputs[variable.variable] = variable.default
+ if (inputs[variable.variable] !== undefined)
+ initialInputs[variable.variable] = inputs[variable.variable]
})
}