Skip to content

Commit

Permalink
Fix error when viewing uncategorized transactions when there are upco…
Browse files Browse the repository at this point in the history
…ming scheduled transactions. (#2475)

* fix: Error when opening uncategorized transactions page

* add release note

* fix linter warning
  • Loading branch information
psybers authored Mar 21, 2024
1 parent 501c6a0 commit d763575
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packages/desktop-client/src/components/accounts/Account.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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' });
};
Expand Down
6 changes: 6 additions & 0 deletions upcoming-release-notes/2475.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [psybers]
---

Fix error when viewing uncategorized transactions when there are upcoming scheduled transactions.

0 comments on commit d763575

Please sign in to comment.