From f992619e91bc5132edb1e0974cad4e3964866e53 Mon Sep 17 00:00:00 2001 From: Miguel Ángel Moreno Date: Tue, 10 Dec 2024 11:12:39 +0100 Subject: fix: fix bookmarks import --- src/frontend/tubo/bookmarks/events.cljs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/frontend/tubo/bookmarks/events.cljs b/src/frontend/tubo/bookmarks/events.cljs index 6a18dbd..ba45226 100644 --- a/src/frontend/tubo/bookmarks/events.cljs +++ b/src/frontend/tubo/bookmarks/events.cljs @@ -220,7 +220,9 @@ (p/then (fn [results] (assoc % :items - (map (fn [item] (get-stream-metadata item)) + (map (fn [item] + (get-stream-metadata + (js->clj item :keywordize-keys true))) (remove nil? results)))))) (map bookmarks) p/all)) @@ -229,9 +231,7 @@ :bookmarks/process-import (fn [_ [_ bookmarks]] {:promise - {:call #(-> (fetch-imported-bookmarks-items bookmarks) - (p/then (fn [res] - (js->clj res :keywordize-keys true)))) + {:call #(fetch-imported-bookmarks-items bookmarks) :on-success-n [[:notifications/clear] [:bookmarks/add-imported]]} :fx [[:dispatch -- cgit v1.2.3