From 5762ee0bf35ab9cb1d00b728b55d231ed530f223 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 6 Oct 2016 22:54:59 +0200 Subject: [PATCH] Fix image initialization event. --- src/uxbox/main/data/images.cljs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/uxbox/main/data/images.cljs b/src/uxbox/main/data/images.cljs index 643cd95175..a7293bcc5d 100644 --- a/src/uxbox/main/data/images.cljs +++ b/src/uxbox/main/data/images.cljs @@ -26,16 +26,16 @@ (let [type (or type :builtin) id (or id (if (= type :builtin) 1 nil)) data {:type type :id id :selected #{}}] + (println "initialize:" data) (-> state (assoc-in [:dashboard :images] data) (assoc-in [:dashboard :section] :dashboard/images)))) rs/WatchEvent (-apply-watch [_ state s] - (rx/merge - (rx/of (fetch-collections)) - (when (uuid? id) - (rx/of (fetch-images id)))))) + (rx/merge (rx/of (fetch-collections)) + (when (uuid? id) + (rx/of (fetch-images id)))))) (defn initialize [type id]