Simplify channels view

This commit is contained in:
Arkadiusz Fal
2023-05-29 16:31:01 +02:00
parent c6cff4dee4
commit be2e4acedd
3 changed files with 6 additions and 9 deletions

View File

@@ -176,9 +176,9 @@ struct AppTabNavigation: View {
}
@ViewBuilder private var channelView: some View {
if navigation.presentingChannel {
if navigation.presentingChannel, let channel = recents.presentedChannel {
NavigationView {
ChannelVideosView(showCloseButton: true)
ChannelVideosView(channel: channel, showCloseButton: true)
}
.environment(\.managedObjectContext, persistenceController.container.viewContext)
.environment(\.inChannelView, true)