Skip to content
Snippets Groups Projects
Unverified Commit 72f4f152 authored by Jed Fox's avatar Jed Fox Committed by GitHub
Browse files

Don’t allow bulk editing to set a field to null (#705)

parent b90da440
No related branches found
No related tags found
No related merge requests found
......@@ -28,12 +28,14 @@ function EditField({
createPayee,
}) {
function onSelect(value) {
// Process the value if needed
if (name === 'amount') {
value = amountToInteger(value);
}
if (value != null) {
// Process the value if needed
if (name === 'amount') {
value = amountToInteger(value);
}
onSubmit(name, value);
onSubmit(name, value);
}
modalProps.onClose();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment