A local-first personal finance app
Fix edge case for missing payee name (#9295)
Emil Tveden Bjerglundbba0c997ac56
diff --git a/packages/desktop-client/src/components/reports/spreadsheets/sankey-spreadsheet.ts b/packages/desktop-client/src/components/reports/spreadsheets/sankey-spreadsheet.tsindex e15f4a6428..91d033f112 100644--- a/packages/desktop-client/src/components/reports/spreadsheets/sankey-spreadsheet.ts+++ b/packages/desktop-client/src/components/reports/spreadsheets/sankey-spreadsheet.ts@@ -884,7 +884,7 @@ export function createTransactionsGraph(graph,entry.categoryId + SpecialNodeKeys.NegativeSuffix,GraphLayers.CategoryGroup,- entry.payeeName ?? entry.category,+ entry.payeeName || entry.category,undefined,true,);@@ -948,7 +948,7 @@ export function createTransactionsGraph(graph,entry.categoryId + SpecialNodeKeys.NegativeSuffix,GraphLayers.IncomeCategory,- entry.payeeName ?? entry.category,+ entry.payeeName || entry.category,);addAccountNode(entry.accountId, entry.accountName);addValueToLink(diff --git a/upcoming-release-notes/sankey-missing-payee-name-bug.md b/upcoming-release-notes/sankey-missing-payee-name-bug.mdnew file mode 100644index 0000000000..c8284bd7d9--- /dev/null+++ b/upcoming-release-notes/sankey-missing-payee-name-bug.md@@ -0,0 +1,6 @@+---+category: Bugfixes+authors: [emiltb]+---++Payments from income categories and deposits to categories now fall back to showing category name if Payee is missing