Return recursive call

This commit is contained in:
Jackson Harper
2022-06-01 21:04:38 -07:00
parent 207a06ed74
commit fc990fb2ab

View File

@ -19,7 +19,7 @@ struct SafariWebLink: Identifiable {
articleContent = try await dataService.fetchArticleContent(itemID: itemID)
} catch {
if retryCount == 0 {
await loadContent(dataService: dataService, itemID: itemID, retryCount: 1)
return await loadContent(dataService: dataService, itemID: itemID, retryCount: 1)
}
if let fetchError = error as? ContentFetchError {
switch fetchError {