From e8235fcf021d1fa84495ebbfc63f54bb9042be73 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Fri, 18 Dec 2015 19:20:48 +0200 Subject: [PATCH] Remove side effect on workspace initialization. --- frontend/uxbox/data/projects.cljs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/uxbox/data/projects.cljs b/frontend/uxbox/data/projects.cljs index 807ae211c..9c5f4144c 100644 --- a/frontend/uxbox/data/projects.cljs +++ b/frontend/uxbox/data/projects.cljs @@ -127,7 +127,7 @@ (let [s {:project projectid :toolboxes #{} :page pageid}] - (update state :workspace merge s))) + (assoc state :workspace s))) IPrintWithWriter (-pr-writer [mv writer _] @@ -159,7 +159,7 @@ (let [pages (project-pages state projectid) pageid (:id (first pages))] (rs/emit! (r/navigate :workspace/page {:project-uuid projectid - :page-uuid pageid}))))) + :page-uuid pageid}))))) IPrintWithWriter (-pr-writer [mv writer _] (-write writer "#