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({ ...@@ -28,12 +28,14 @@ function EditField({
createPayee, createPayee,
}) { }) {
function onSelect(value) { function onSelect(value) {
// Process the value if needed if (value != null) {
if (name === 'amount') { // Process the value if needed
value = amountToInteger(value); if (name === 'amount') {
} value = amountToInteger(value);
}
onSubmit(name, value); onSubmit(name, value);
}
modalProps.onClose(); 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