0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-03 21:09:00 -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 "A reduce function for assoc the project
to the state map." to the state map."
[state proj] [state proj]
(let [uuid (:id proj)] (let [id (:id proj)]
(update-in state [:projects-by-id] assoc uuid proj))) (update-in state [:projects-by-id id] merge proj)))
(defn dissoc-project (defn dissoc-project
"A reduce function for dissoc the project "A reduce function for dissoc the project