[frontend/component] Don't try to search if input is null, empty or whitespace

This commit is contained in:
Tournesol 2025-03-25 21:47:47 +01:00
parent 2f05757c57
commit 9ab09fb6a1
No known key found for this signature in database

View file

@ -100,6 +100,7 @@
{ {
NoteSearchInstance = null; NoteSearchInstance = null;
_resultType = ResultType.None; _resultType = ResultType.None;
if (String.IsNullOrWhiteSpace(SearchString)) return;
StateHasChanged(); StateHasChanged();
try try
{ {