diff --git a/packages/desktop-client/src/components/accounts/Account.jsx b/packages/desktop-client/src/components/accounts/Account.jsx index 8d6923cb414..3efff4ec981 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 00000000000..41b54e6bc7f --- /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