mirror of
https://github.com/yattee/yattee.git
synced 2025-08-05 02:04:07 +00:00
Simplify channels view
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user