mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 13:33:42 +00:00
Fix crash
This commit is contained in:
parent
56c2e552f7
commit
2c5eb18bc9
@ -204,7 +204,8 @@ struct FavoriteItemView: View {
|
||||
}
|
||||
|
||||
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user