mirror of
https://github.com/yattee/yattee.git
synced 2025-08-09 20:24:06 +00:00
Refactor
This commit is contained in:
@@ -197,7 +197,8 @@ struct PlaylistsView: View {
|
||||
|
||||
func loadCachedResource() {
|
||||
if !selectedPlaylistID.isEmpty,
|
||||
let cache = ChannelPlaylistsCacheModel.shared.retrievePlaylist(selectedPlaylistID)
|
||||
let currentPlaylist,
|
||||
let cache = ChannelPlaylistsCacheModel.shared.retrievePlaylist(currentPlaylist.channelPlaylist)
|
||||
{
|
||||
DispatchQueue.main.async {
|
||||
self.channelPlaylist.replace(cache)
|
||||
|
Reference in New Issue
Block a user