SourcesView: Fix 1 trusted source causing an error making all trusted sources fail to load

This commit is contained in:
naturecodevoid
2023-02-18 20:27:06 -08:00
parent 0d3cb843ea
commit 19e66112dd

View File

@@ -250,10 +250,9 @@ struct SourcesView: View {
dispatchGroup.notify(queue: .main) {
if let (error, _) = errors.first {
NotificationManager.shared.reportError(error: error)
} else {
}
let sources = featuredSourceURLs.compactMap { sourcesByURL[$0] }
self.trustedSources = sources
}
self.isLoadingTrustedSources = false
}