Clear a stopped-load error when the playlist arrives anyway

A remote playlist load cancelled on tvOS can still land. If the playlist
it brings is empty, playlistBody showed the stale "Loading was stopped."
instead of the empty state.
This commit is contained in:
Arkadiusz Fal
2026-10-18 23:23:06 +02:00
parent c19be0a0ef
commit 22ec48af3d

View File

@@ -1161,6 +1161,9 @@ struct UnifiedPlaylistDetailView: View {
/// Shows a playlist that came from the public endpoint.
private func apply(_ playlist: Playlist) {
// A load the user stopped on tvOS may still land; the playlist it
// brings replaces the "stopped" error.
errorMessage = nil
remotePlaylist = playlist
title = playlist.title
descriptionText = playlist.description