From 115f9fea674c4cdebe44a9a9b2ae956f3c1fcfa6 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Sun, 11 Dec 2022 23:22:38 +0100 Subject: [PATCH] Fix playlists in favorites --- Shared/Home/FavoriteItemView.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Shared/Home/FavoriteItemView.swift b/Shared/Home/FavoriteItemView.swift index 3ce20911..d3e3ca88 100644 --- a/Shared/Home/FavoriteItemView.swift +++ b/Shared/Home/FavoriteItemView.swift @@ -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: