Fixed a crash due to a race condition in RecipeListView

This commit is contained in:
VincentMeilinger
2024-03-10 12:50:42 +01:00
parent 2c749754f4
commit 5d82cdf0c2
4 changed files with 32 additions and 11 deletions

View File

@@ -48,7 +48,6 @@ struct RecipeCardView: View {
}
.background(Color.backgroundHighlight)
.clipShape(RoundedRectangle(cornerRadius: 17))
.padding(.horizontal)
.task {
recipeThumb = await appState.getImage(
id: recipe.recipe_id,
@@ -67,5 +66,6 @@ struct RecipeCardView: View {
fetchMode: UserSettings.shared.storeThumb ? .preferServer : .onlyServer
)
}
.frame(height: 80)
}
}