From 19e66112ddf78d9a923a59f0ce28bb7a5a6ee992 Mon Sep 17 00:00:00 2001 From: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Sat, 18 Feb 2023 20:27:06 -0800 Subject: [PATCH] SourcesView: Fix 1 trusted source causing an error making all trusted sources fail to load --- AltStore/Views/Browse/SourcesView.swift | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/AltStore/Views/Browse/SourcesView.swift b/AltStore/Views/Browse/SourcesView.swift index 566c1ac0..a21f4d5c 100644 --- a/AltStore/Views/Browse/SourcesView.swift +++ b/AltStore/Views/Browse/SourcesView.swift @@ -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 } + let sources = featuredSourceURLs.compactMap { sourcesByURL[$0] } + self.trustedSources = sources self.isLoadingTrustedSources = false }