mirror of
https://github.com/linuxserver/budge.git
synced 2026-03-09 00:08:38 +08:00
default to '0' category if it's empty (this happens if you are making a trx on off-budget account but it's not a transfer) (#23)
This commit is contained in:
parent
86242e9756
commit
d8f86dc883
@ -826,7 +826,7 @@ export default function Account(props) {
|
||||
date: newRow.date,
|
||||
memo: newRow.memo,
|
||||
payeeId: newRow.payeeId,
|
||||
categoryId: newRow.categoryId === '0' ? null : newRow.categoryId,
|
||||
categoryId: newRow.categoryId === '0' || newRow.categoryId === '' ? null : newRow.categoryId,
|
||||
status: 0,
|
||||
},
|
||||
}),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user