diff options
author | Miguel Ángel Moreno <mail@migalmoreno.com> | 2024-12-02 08:33:01 +0100 |
---|---|---|
committer | Miguel Ángel Moreno <mail@migalmoreno.com> | 2024-12-02 08:33:01 +0100 |
commit | 9078a104240789f0bd2afcb7a65742d5a387b372 (patch) | |
tree | cf0f408cf1b22290bdf7771326541f36e59b3158 /src/frontend | |
parent | 50fca9bf9f7ac5d504462e28be14dd23ab9dc56b (diff) |
fix: fix items url for bookmarks pages
Diffstat (limited to 'src/frontend')
-rw-r--r-- | src/frontend/tubo/items/views.cljs | 12 |
1 files changed, 5 insertions, 7 deletions
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 |