From df72bf99bace542d4cbbc23bd07808db3678abbd Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Mon, 10 Jan 2022 20:06:43 +0100 Subject: [PATCH] Fix displaying searches in favorites --- Shared/Favorites/FavoriteResourceObserver.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Shared/Favorites/FavoriteResourceObserver.swift b/Shared/Favorites/FavoriteResourceObserver.swift index 384943b0..48cb4f97 100644 --- a/Shared/Favorites/FavoriteResourceObserver.swift +++ b/Shared/Favorites/FavoriteResourceObserver.swift @@ -13,6 +13,8 @@ final class FavoriteResourceObserver: ObservableObject, ResourceObserver { contentItems = playlist.videos.map { ContentItem(video: $0) } } else if let playlist: Playlist = resource.typedContent() { contentItems = playlist.videos.map { ContentItem(video: $0) } + } else if let page: SearchPage = resource.typedContent() { + contentItems = page.results } else if let items: [ContentItem] = resource.typedContent() { contentItems = items }