From 072ea177f3cc2df4025ed9deb98c4004295716d6 Mon Sep 17 00:00:00 2001 From: Stuart Mitchell Date: Tue, 6 Sep 2016 10:36:57 +1200 Subject: [PATCH] Todomvc - fixed problem with black todos --- examples/todomvc/src/todomvc/db.cljs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/examples/todomvc/src/todomvc/db.cljs b/examples/todomvc/src/todomvc/db.cljs index e54366a..2473319 100644 --- a/examples/todomvc/src/todomvc/db.cljs +++ b/examples/todomvc/src/todomvc/db.cljs @@ -63,8 +63,9 @@ (re-frame/reg-cofx :local-store-todos (fn [cofx _] - "Read in todos from localstore, and process into a map we can merge into app-db." - (assoc cofx :local-store-todos - (some->> (.getItem js/localStorage ls-key) - (cljs.reader/read-string) ;; stored as an EDN map. - (into (sorted-map)))))) + "Read in todos from localstore, and process into a map we can merge into app-db." + (assoc cofx :local-store-todos + (into (sorted-map) + (some->> (.getItem js/localStorage ls-key) + (cljs.reader/read-string) ;; stored as an EDN map. + )))))