Skip to content

A local-first personal finance app

[Mobile] Add support for searching child transactions (#4471)

Joel Jeremy Marquezb4f423eac0ce
diff --git a/packages/desktop-client/src/components/mobile/accounts/AccountTransactions.tsx b/packages/desktop-client/src/components/mobile/accounts/AccountTransactions.tsx
index 3ac2b75af2..9dfd826afb 100644
--- a/packages/desktop-client/src/components/mobile/accounts/AccountTransactions.tsx
+++ b/packages/desktop-client/src/components/mobile/accounts/AccountTransactions.tsx
@@ -234,7 +234,7 @@ function TransactionListWithPreviews({
const { t } = useTranslation();
const baseTransactionsQuery = useCallback(
() =>
- queries.transactions(accountId).options({ splits: 'none' }).select('*'),
+ queries.transactions(accountId).options({ splits: 'all' }).select('*'),
[accountId],
);
@@ -330,7 +330,8 @@ function TransactionListWithPreviews({
);
const transactionsToDisplay = !isSearching
- ? previewTransactions.concat(transactions)
+ ? // Do not render child transactions in the list, unless searching
+ previewTransactions.concat(transactions.filter(t => !t.is_child))
: transactions;
return (
diff --git a/upcoming-release-notes/4471.md b/upcoming-release-notes/4471.md
new file mode 100644
index 0000000000..12a9e66eeb
--- /dev/null
+++ b/upcoming-release-notes/4471.md
@@ -0,0 +1,6 @@
+---
+category: Enhancements
+authors: [joel-jeremy]
+---
+
+[Mobile] Add support for searching child transactions
\ No newline at end of file