mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-11 12:43:09 -05:00
Don’t allow bulk editing to set a field to null (#705)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user