Skip to content

A local-first personal finance app

Resolves #4429 crash where clicking "manage payees" with an empty payee then clicking dropdown (#4462)

Alec Bakholdina72fd74c5ec2
diff --git a/packages/desktop-client/src/components/transactions/TransactionList.jsx b/packages/desktop-client/src/components/transactions/TransactionList.jsx
index 3bbf25cc32..c404ffbfdc 100644
--- a/packages/desktop-client/src/components/transactions/TransactionList.jsx
+++ b/packages/desktop-client/src/components/transactions/TransactionList.jsx
@@ -220,7 +220,7 @@ export function TransactionList({
const onManagePayees = useCallback(
id => {
- navigate('/payees', { state: { selectedPayee: id } });
+ navigate('/payees', id && { state: { selectedPayee: id } });
},
[navigate],
);
diff --git a/upcoming-release-notes/4462.md b/upcoming-release-notes/4462.md
new file mode 100644
index 0000000000..754d56e9d2
--- /dev/null
+++ b/upcoming-release-notes/4462.md
@@ -0,0 +1,6 @@
+---
+category: Bugfix
+authors: [alecbakholdin]
+---
+
+Fixed bug where navigating to payees page by clicking "manage payees" with an empty payee from a transaction would result in a crash.