Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Sjmarf committed Mar 2, 2025
1 parent ad1c9af commit c4f3ede
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Mlem/App/Views/Shared/Search/SearchView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ struct SearchView: View {
}
// // Don't use `.task` here, because it triggers when navigating back
.onChange(of: query, initial: true) { oldValue, newValue in
if oldValue != newValue {
if oldValue != newValue || selectedTab == .communities && communityLoader.items.isEmpty && !isSearching {
contentChangeTriggerRefresh(onlyRefreshIfEmpty: false)
}
}
Expand Down

0 comments on commit c4f3ede

Please sign in to comment.