0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-09 00:10:11 -05:00

Minor naming improvements.

This commit is contained in:
Andrey Antukh 2015-12-24 19:32:56 +02:00
parent 8c030ac73e
commit f82f9f8384

View file

@ -68,8 +68,8 @@
(letfn [(select-first [state]
(if (= type :builtin)
(assoc-in state [:dashboard :collection-id] 1)
(let [coll (sort-by :id (vals (:colors-by-id state)))]
(assoc-in state [:dashboard :collection-id] (:id (first coll))))))]
(let [colls (sort-by :id (vals (:colors-by-id state)))]
(assoc-in state [:dashboard :collection-id] (:id (first colls))))))]
(reify
rs/UpdateEvent
(-apply-update [_ state]