mirror of
https://github.com/yattee/yattee.git
synced 2025-04-26 00:26:33 +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
|
channel.videos = videos
|
||||||
ChannelsCacheModel.shared.store(channel)
|
ChannelsCacheModel.shared.store(channel)
|
||||||
store.contentItems = ContentItem.array(of: videos)
|
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):
|
case let .channelPlaylist(_, id, title):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user