Skip to content

Commit

Permalink
fix: using a search character that is only a space would cause an err…
Browse files Browse the repository at this point in the history
…or (#91)

* fix: using a search character that is only a space would cause a error

* reset rust side changes

* fix: In dart side
  • Loading branch information
XMLHexagram authored Nov 21, 2024
1 parent a10c518 commit fdde906
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/screens/search/search.dart
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ class _SearchPageImplementationState extends State<SearchPageImplementation> {
_lastSearched = task;
if (_debounce?.isActive ?? false) _debounce!.cancel();
_debounce = Timer(const Duration(milliseconds: 300), () {
if (!_isRequestInProgress) {
if (!_isRequestInProgress && searchController.text.trim().isNotEmpty) {
_performSearch(searchController.text);
}
});
Expand Down

0 comments on commit fdde906

Please sign in to comment.