From e54812590799a9ad8683cf7c0af4715bf044f269 Mon Sep 17 00:00:00 2001 From: Martin French Date: Thu, 28 Dec 2023 01:20:58 +0800 Subject: [PATCH] [Bugfix] Fix update transaction API bug (#2127) --- packages/loot-core/src/server/api.ts | 2 +- upcoming-release-notes/2127.md | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 upcoming-release-notes/2127.md diff --git a/packages/loot-core/src/server/api.ts b/packages/loot-core/src/server/api.ts index 34a9730575b..b87d4b14bd2 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 00000000000..d217cfebb58 --- /dev/null +++ b/upcoming-release-notes/2127.md @@ -0,0 +1,6 @@ +--- +category: Bugfix +authors: [mk-french] +--- + +Fix update transaction API bug