Fix crash

This commit is contained in:
Arkadiusz Fal 2023-06-07 22:35:57 +02:00
parent 56c2e552f7
commit 2c5eb18bc9

View File

@ -204,7 +204,8 @@ struct FavoriteItemView: View {
} }
func watch(_ item: ContentItem) -> Watch? { func watch(_ item: ContentItem) -> Watch? {
watches.first { $0.videoID == item.video.videoID } guard let id = item.video?.videoID else { return nil }
return watches.first { $0.videoID == id }
} }
var widgetListingStyle: WidgetListingStyle { var widgetListingStyle: WidgetListingStyle {