A local-first personal finance app
resets transaction search even if search text is not empty (#4461)
Alec Bakholdin94f94497af17
diff --git a/packages/loot-core/src/client/data-hooks/transactions.ts b/packages/loot-core/src/client/data-hooks/transactions.tsindex 8fc9abf688..9099f9bae3 100644--- a/packages/loot-core/src/client/data-hooks/transactions.ts+++ b/packages/loot-core/src/client/data-hooks/transactions.ts@@ -317,6 +317,7 @@ export function useTransactionsSearch({resetQuery();setIsSearching(false);} else if (searchText) {+ resetQuery();updateQuery(previousQuery =>queries.transactionsSearch(previousQuery, searchText, dateFormat),);diff --git a/upcoming-release-notes/4461.md b/upcoming-release-notes/4461.mdnew file mode 100644index 0000000000..3585daf99e--- /dev/null+++ b/upcoming-release-notes/4461.md@@ -0,0 +1,6 @@+---+category: Bugfix+authors: [alecbakholdin]+---++Fixed bug where partially erasing search string would not reset search and result in incorrect search results.