Skip to content

A local-first personal finance app

Fix error when viewing uncategorized transactions when there are upcoming scheduled transactions. (#2475)

Robert Dyerd7635755f2a8
diff --git a/packages/desktop-client/src/components/accounts/Account.jsx b/packages/desktop-client/src/components/accounts/Account.jsx
index 8d6923cb41..3efff4ec98 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 0000000000..41b54e6bc7
--- /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