fix: Cannot modify values when startNode has defaultValue (#25595)

This commit is contained in:
17hz
2025-09-12 21:11:24 +08:00
committed by GitHub
parent c78ef79995
commit 635e7d3e70

View File

@@ -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]
})
}