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