If there is no search term but there is an applied filter, perform a search after updating from the synced items

This fixes issues with filters that have very few items in them
not showing historical data if the filter is applied.
This commit is contained in:
Jackson Harper 2022-11-18 11:39:22 +08:00 committed by Hongbo Wu
parent 75a5e9fb03
commit 062215afa4

View file

@ -183,6 +183,9 @@ import Views
if searchTerm.replacingOccurrences(of: " ", with: "").isEmpty {
updateFetchController(dataService: dataService)
if appliedFilter != LinkedItemFilter.inbox.rawValue {
await loadSearchQuery(dataService: dataService, isRefresh: isRefresh)
}
} else {
await loadSearchQuery(dataService: dataService, isRefresh: isRefresh)
}