diff --git a/packages/desktop-client/src/components/accounts/Account.jsx b/packages/desktop-client/src/components/accounts/Account.jsx index 8d6923cb414756c164a0f0c31d5762b266a0d534..3efff4ec981685043733b54d021fa9a3f8ec8b05 100644 --- a/packages/desktop-client/src/components/accounts/Account.jsx +++ b/packages/desktop-client/src/components/accounts/Account.jsx @@ -1641,9 +1641,13 @@ export function Account() { $and: [{ '_account.closed': false }], }); if (params.id) { - q = q.filter({ - $or: [filterByAccount, filterByPayee], - }); + if (params.id === 'uncategorized') { + q = q.filter({ next_date: null }); + } else { + q = q.filter({ + $or: [filterByAccount, filterByPayee], + }); + } } return q.orderBy({ next_date: 'desc' }); }; diff --git a/upcoming-release-notes/2475.md b/upcoming-release-notes/2475.md new file mode 100644 index 0000000000000000000000000000000000000000..41b54e6bc7fe010d5e5b15f96ff700599579d904 --- /dev/null +++ b/upcoming-release-notes/2475.md @@ -0,0 +1,6 @@ +--- +category: Bugfix +authors: [psybers] +--- + +Fix error when viewing uncategorized transactions when there are upcoming scheduled transactions. \ No newline at end of file