Show a failed remote playlist load as an error with Retry

A remote playlist arrives with its title, so the body always rendered
playlistContent and the errorView branch was never reached: a failed
load showed the empty-playlist placeholder and no way to retry.
This commit is contained in:
Arkadiusz Fal
2026-10-16 23:30:21 +02:00
parent d5b5b3262d
commit 3875c864b1

View File

@@ -412,6 +412,11 @@ struct UnifiedPlaylistDetailView: View {
ProgressView()
.frame(maxWidth: .infinity)
.padding(.top, 40)
} else if let errorMessage {
// A remote playlist arrives with its title, so a failed load
// lands in playlistContent rather than the body's error branch.
errorView(errorMessage)
.padding(.top, 40)
} else {
emptyPlaylistView
}