From 9078a104240789f0bd2afcb7a65742d5a387b372 Mon Sep 17 00:00:00 2001 From: Miguel Ángel Moreno Date: Mon, 2 Dec 2024 08:33:01 +0100 Subject: fix: fix items url for bookmarks pages --- src/frontend/tubo/items/views.cljs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src/frontend') diff --git a/src/frontend/tubo/items/views.cljs b/src/frontend/tubo/items/views.cljs index 9a72fcb..5cc299b 100644 --- a/src/frontend/tubo/items/views.cljs +++ b/src/frontend/tubo/items/views.cljs @@ -166,13 +166,11 @@ (let [service-color @(rf/subscribe [:service-color]) pagination-loading? @(rf/subscribe [:show-pagination-loading]) bookmarks @(rf/subscribe [:bookmarks]) - item-url #(rfe/href (case (:type %) - "stream" :stream-page - "channel" :channel-page - "playlist" :playlist-page - (:url %)) - nil - {:url (:url %)})] + item-url #(case (:type %) + "stream" (rfe/href :stream-page nil {:url %}) + "channel" (rfe/href :channel-page nil {:url %}) + "playlist" (rfe/href :playlist-page nil {:url %}) + (:url %))] [:div.flex.flex-col.flex-auto.my-2.md:my-8 (if (empty? related-streams) [:div.flex.items-center.flex-auto.flex-col.justify-center.gap-y-4 -- cgit v1.2.3