only reset bestMatch when searchquery is empty
This commit is contained in:
@@ -104,7 +104,9 @@ class SearchVM : ViewModel(), KoinComponent {
|
||||
searchQuery.value = query
|
||||
isSearchEmpty.value = query.isEmpty()
|
||||
hiddenResults.value = emptyList()
|
||||
bestMatch.value = null
|
||||
|
||||
if (isSearchEmpty.value)
|
||||
bestMatch.value = null
|
||||
|
||||
try {
|
||||
searchJob?.cancel()
|
||||
|
||||
Reference in New Issue
Block a user