Fail gracefully when refreshing infrastructure (#307)
This commit is contained in:
parent
a78a7b18b5
commit
d05cf7140c
|
@ -148,7 +148,7 @@ extension ProfileView {
|
||||||
private func refreshInfrastructure() {
|
private func refreshInfrastructure() {
|
||||||
isRefreshingInfrastructure = true
|
isRefreshingInfrastructure = true
|
||||||
Task { @MainActor in
|
Task { @MainActor in
|
||||||
try await providerManager.fetchRemoteProviderPublisher(forProfile: profile).async()
|
try? await providerManager.fetchRemoteProviderPublisher(forProfile: profile).async()
|
||||||
isRefreshingInfrastructure = false
|
isRefreshingInfrastructure = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue