A local-first personal finance app
Don’t allow bulk editing to set a field to null (#705)
Jed Fox72f4f1523c14
diff --git a/packages/loot-design/src/components/modals/EditField.js b/packages/loot-design/src/components/modals/EditField.jsindex 6cc252305c..606ee6e7d0 100644--- a/packages/loot-design/src/components/modals/EditField.js+++ b/packages/loot-design/src/components/modals/EditField.js@@ -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();}