Skip to content

Commit

Permalink
resets transaction search even if search text is not empty (#4461)
Browse files Browse the repository at this point in the history
* resets transaction search even if search text is not empty

* added release notes

---------

Co-authored-by: Alec Bakholdin <abakho@icims.com>
  • Loading branch information
alecbakholdin and Alec Bakholdin authored Feb 27, 2025
1 parent a72fd74 commit 94f9449
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/loot-core/src/client/data-hooks/transactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ export function useTransactionsSearch({
resetQuery();
setIsSearching(false);
} else if (searchText) {
resetQuery();
updateQuery(previousQuery =>
queries.transactionsSearch(previousQuery, searchText, dateFormat),
);
Expand Down
6 changes: 6 additions & 0 deletions upcoming-release-notes/4461.md
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit 94f9449

Please sign in to comment.