fix false positive for isDirty check via StartNode (#3582)
This commit is contained in:
@@ -105,6 +105,11 @@ function StartNode({ id, data }: NodeProps<StartNode>) {
|
|||||||
if (!data.editable) {
|
if (!data.editable) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (inputs[key as keyof typeof inputs] === value) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
setInputs({ ...inputs, [key]: value });
|
setInputs({ ...inputs, [key]: value });
|
||||||
updateNodeData(id, { [key]: value });
|
updateNodeData(id, { [key]: value });
|
||||||
}
|
}
|
||||||
@@ -324,7 +329,7 @@ function StartNode({ id, data }: NodeProps<StartNode>) {
|
|||||||
<KeyValueInput
|
<KeyValueInput
|
||||||
value={inputs.extraHttpHeaders ?? null}
|
value={inputs.extraHttpHeaders ?? null}
|
||||||
onChange={(val) =>
|
onChange={(val) =>
|
||||||
handleChange("extraHttpHeaders", val)
|
handleChange("extraHttpHeaders", val || "{}")
|
||||||
}
|
}
|
||||||
addButtonText="Add Header"
|
addButtonText="Add Header"
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user