Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
anonymous committed Mar 18, 2024
1 parent 86421da commit 4b0bc45
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "moneynote-pc",
"version": "1.0.72",
"version": "1.0.73",
"private": true,
"scripts": {
"analyze": "cross-env ANALYZE=1 max build",
Expand Down
15 changes: 5 additions & 10 deletions src/pages/BalanceFlow/ActionForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,20 +189,15 @@ export default ({ initType = 'EXPENSE' }) => {
if (form.tags) {
form.tags = form.tags.map((i) => i?.value || i);
}
form.bookId = form.book.value;
delete form.book;
form.accountId = form.account?.value;
delete form.account;
form.payeeId = form.payee?.value;
delete form.payee;
form.toId = form.to?.value;
delete form.to;
form.book = form.book.value;
form.account = form.account?.value;
form.payee = form.payee?.value;
form.to = form.to?.value;
if (form.categories) {
form.categories = form.categories.map((e) => ({
...e,
'categoryId': e.category.value,
'category': e.category.value,
}));
form.categories.forEach(e => delete e.category);
}
if (action !== 2) {
await create('balance-flows', form);
Expand Down

0 comments on commit 4b0bc45

Please sign in to comment.