mirror of
https://github.com/Valkyrie00/bold-brew.git
synced 2026-03-14 22:35:53 +01:00
fix: update filter counter in case a filter returns nothing (#42)
Co-authored-by: Arjun Pathak <arjun.pathak@nielsen.com>
This commit is contained in:
parent
e6af61716d
commit
453e8bfc8f
1 changed files with 2 additions and 0 deletions
|
|
@ -314,6 +314,8 @@ func (s *AppService) setResults(data *[]models.Package, scrollToTop bool) {
|
|||
return
|
||||
}
|
||||
|
||||
// Update the filter counter even if no results are found
|
||||
s.layout.GetSearch().UpdateCounter(len(*s.packages), len(*s.filteredPackages))
|
||||
s.layout.GetDetails().SetContent(nil) // Clear details if no results
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue