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:
parent
1e0892f0ee
commit
6a3e0b7743
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue