0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-24 23:49:45 -05:00

Minor cosmetic changes on state management functions for projects.

This commit is contained in:
Andrey Antukh 2016-03-15 20:58:07 +02:00
parent 1e0892f0ee
commit 6a3e0b7743

View file

@ -5,8 +5,8 @@
"A reduce function for assoc the project
to the state map."
[state proj]
(let [uuid (:id proj)]
(update-in state [:projects-by-id] assoc uuid proj)))
(let [id (:id proj)]
(update-in state [:projects-by-id id] merge proj)))
(defn dissoc-project
"A reduce function for dissoc the project