diff options
author | Miguel Ángel Moreno <mail@migalmoreno.com> | 2024-12-10 11:12:39 +0100 |
---|---|---|
committer | Miguel Ángel Moreno <mail@migalmoreno.com> | 2024-12-10 11:12:39 +0100 |
commit | f992619e91bc5132edb1e0974cad4e3964866e53 (patch) | |
tree | ea5f2426bb3b8891e4daa62cbe15ad8971a455fd /src/frontend | |
parent | 3233d3685bacf1e4e816fbc823e42b476a9b4d6d (diff) |
fix: fix bookmarks import
Diffstat (limited to 'src/frontend')
-rw-r--r-- | src/frontend/tubo/bookmarks/events.cljs | 8 |
1 files 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 |