From 3cc10b7e0f24b574623614c3fd85e92ad183bec1 Mon Sep 17 00:00:00 2001 From: Christiaan Scheermeijer Date: Thu, 19 Sep 2024 16:51:17 +0200 Subject: [PATCH] fix: prevent recommendations as feed --- .../ScreenRouting/mediaScreens/MediaMovie/MediaMovie.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/ui-react/src/pages/ScreenRouting/mediaScreens/MediaMovie/MediaMovie.tsx b/packages/ui-react/src/pages/ScreenRouting/mediaScreens/MediaMovie/MediaMovie.tsx index dd3d5df03..1f2f9c9b4 100644 --- a/packages/ui-react/src/pages/ScreenRouting/mediaScreens/MediaMovie/MediaMovie.tsx +++ b/packages/ui-react/src/pages/ScreenRouting/mediaScreens/MediaMovie/MediaMovie.tsx @@ -60,7 +60,7 @@ const MediaMovie: ScreenComponent = ({ data, isLoading }) => { // Handlers const goBack = () => data && navigate(mediaURL({ media: data, playlistId: feedId, play: false })); - const getUrl = (item: PlaylistItem) => mediaURL({ media: item, playlistId: features?.recommendationsPlaylist }); + const getUrl = (item: PlaylistItem) => mediaURL({ media: item, playlistId: feedId }); const handleComplete = useCallback(() => { if (!id || !playlist) return; @@ -68,8 +68,8 @@ const MediaMovie: ScreenComponent = ({ data, isLoading }) => { const index = playlist.playlist.findIndex(({ mediaid }) => mediaid === id); const nextItem = playlist.playlist[index + 1]; - return nextItem && navigate(mediaURL({ media: nextItem, playlistId: features?.recommendationsPlaylist, play: true })); - }, [id, playlist, navigate, features?.recommendationsPlaylist]); + return nextItem && navigate(mediaURL({ media: nextItem, playlistId: feedId, play: true })); + }, [id, playlist, navigate, feedId]); useEffect(() => { (document.scrollingElement || document.body).scroll({ top: 0 });