mirror of
https://github.com/actualbudget/actual.git
synced 2026-04-30 10:14:53 -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,
|
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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user