fix false positive for isDirty check via StartNode (#3582)

This commit is contained in:
Jonathan Dobson
2025-10-01 17:39:42 -04:00
committed by GitHub
parent f97b53975f
commit 4a2b091226

View File

@@ -105,6 +105,11 @@ function StartNode({ id, data }: NodeProps<StartNode>) {
if (!data.editable) {
return;
}
if (inputs[key as keyof typeof inputs] === value) {
return;
}
setInputs({ ...inputs, [key]: value });
updateNodeData(id, { [key]: value });
}
@@ -324,7 +329,7 @@ function StartNode({ id, data }: NodeProps<StartNode>) {
<KeyValueInput
value={inputs.extraHttpHeaders ?? null}
onChange={(val) =>
handleChange("extraHttpHeaders", val)
handleChange("extraHttpHeaders", val || "{}")
}
addButtonText="Add Header"
/>