Skip to content

A local-first personal finance app

[Bugfix] Fix update transaction API bug (#2127)

Martin Frenche54812590799
diff --git a/packages/loot-core/src/server/api.ts b/packages/loot-core/src/server/api.ts
index 34a9730575..b87d4b14bd 100644
--- a/packages/loot-core/src/server/api.ts
+++ b/packages/loot-core/src/server/api.ts
@@ -443,7 +443,7 @@ handlers['api/transaction-update'] = withMutation(async function ({
return [];
}
- const { diff } = updateTransaction(transactions, fields);
+ const { diff } = updateTransaction(transactions, { id, ...fields });
return handlers['transactions-batch-update'](diff);
});
diff --git a/upcoming-release-notes/2127.md b/upcoming-release-notes/2127.md
new file mode 100644
index 0000000000..d217cfebb5
--- /dev/null
+++ b/upcoming-release-notes/2127.md
@@ -0,0 +1,6 @@
+---
+category: Bugfix
+authors: [mk-french]
+---
+
+Fix update transaction API bug