Fix playlists in favorites

This commit is contained in:
Arkadiusz Fal 2022-12-11 23:22:38 +01:00
parent d02bb23e57
commit 115f9fea67

View File

@ -106,6 +106,8 @@ struct FavoriteItemView: View {
return navigationStyle == .tab
case .channelPlaylist:
return navigationStyle == .tab
case .playlist:
return navigationStyle == .tab
case .subscriptions:
return navigationStyle == .tab
case .popular:
@ -122,6 +124,8 @@ struct FavoriteItemView: View {
ChannelVideosView(channel: .init(id: id, name: name))
case let .channelPlaylist(_, id, title):
ChannelPlaylistView(playlist: .init(id: id, title: title))
case let .playlist(id):
ChannelPlaylistView(playlist: .init(id: id, title: label))
case .subscriptions:
SubscriptionsView()
case .popular: