mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-19 03:33:36 +01:00
SourcesView: Fix 1 trusted source causing an error making all trusted sources fail to load
This commit is contained in:
@@ -250,10 +250,9 @@ struct SourcesView: View {
|
|||||||
dispatchGroup.notify(queue: .main) {
|
dispatchGroup.notify(queue: .main) {
|
||||||
if let (error, _) = errors.first {
|
if let (error, _) = errors.first {
|
||||||
NotificationManager.shared.reportError(error: error)
|
NotificationManager.shared.reportError(error: error)
|
||||||
} else {
|
|
||||||
let sources = featuredSourceURLs.compactMap { sourcesByURL[$0] }
|
|
||||||
self.trustedSources = sources
|
|
||||||
}
|
}
|
||||||
|
let sources = featuredSourceURLs.compactMap { sourcesByURL[$0] }
|
||||||
|
self.trustedSources = sources
|
||||||
|
|
||||||
self.isLoadingTrustedSources = false
|
self.isLoadingTrustedSources = false
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user