mirror of
https://github.com/yattee/yattee.git
synced 2024-11-09 15:58:20 +00:00
Fix loading channels data in Favorites
This commit is contained in:
parent
912e1d1a23
commit
4851db4879
@ -88,6 +88,12 @@ struct FavoriteItemView: View {
|
||||
channel.videos = videos
|
||||
ChannelsCacheModel.shared.store(channel)
|
||||
store.contentItems = ContentItem.array(of: videos)
|
||||
} else if let channelPage: ChannelPage = response.typedContent() {
|
||||
if let channel = channelPage.channel {
|
||||
ChannelsCacheModel.shared.store(channel)
|
||||
}
|
||||
|
||||
store.contentItems = channelPage.results
|
||||
}
|
||||
}
|
||||
case let .channelPlaylist(_, id, title):
|
||||
|
Loading…
Reference in New Issue
Block a user