diff --git a/packages/desktop-client/src/components/accounts/Account.js b/packages/desktop-client/src/components/accounts/Account.js index 148614236e212f525993d16297beb94d30bb3c7e..9264f221ccaaa9d921c851e56e1e3f2a97bcd5ea 100644 --- a/packages/desktop-client/src/components/accounts/Account.js +++ b/packages/desktop-client/src/components/accounts/Account.js @@ -1413,7 +1413,15 @@ class AccountInternal extends React.PureComponent { value = !!transactions.find(t => !t.cleared); } + let idSet = new Set(ids); + transactions.forEach(trans => { + if (!idSet.has(trans.id)) { + // Skip transactions which aren't actually selected, since the + // query above also retrieves the siblings of any selected splits. + return; + } + let { diff } = updateTransaction(transactions, { ...trans, [name]: value