From 5fade8bb937e7f78314ee90c29cb85eacd7084b8 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 8 Nov 2016 20:40:35 +0100 Subject: [PATCH] Fix unexpected exception on persisting first time color collections. --- src/uxbox/main/data/colors.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uxbox/main/data/colors.cljs b/src/uxbox/main/data/colors.cljs index 641b8ad05f..4c6a451ea9 100644 --- a/src/uxbox/main/data/colors.cljs +++ b/src/uxbox/main/data/colors.cljs @@ -116,7 +116,7 @@ (-apply-watch [_ state stream] (let [builtin? #(= :builtin (:type %)) xform (remove (comp builtin? second)) - version (get state ::version) + version (or (get state ::version) -1) value (->> (get state :colors-collections) (into {} xform)) store {:key "color-collections"