mirror of
https://github.com/yattee/yattee.git
synced 2025-01-07 18:10:33 +05:30
Fix displaying searches in favorites
This commit is contained in:
parent
db4a817164
commit
df72bf99ba
@ -13,6 +13,8 @@ final class FavoriteResourceObserver: ObservableObject, ResourceObserver {
|
|||||||
contentItems = playlist.videos.map { ContentItem(video: $0) }
|
contentItems = playlist.videos.map { ContentItem(video: $0) }
|
||||||
} else if let playlist: Playlist = resource.typedContent() {
|
} else if let playlist: Playlist = resource.typedContent() {
|
||||||
contentItems = playlist.videos.map { ContentItem(video: $0) }
|
contentItems = playlist.videos.map { ContentItem(video: $0) }
|
||||||
|
} else if let page: SearchPage = resource.typedContent() {
|
||||||
|
contentItems = page.results
|
||||||
} else if let items: [ContentItem] = resource.typedContent() {
|
} else if let items: [ContentItem] = resource.typedContent() {
|
||||||
contentItems = items
|
contentItems = items
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user