0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-09 08:20:45 -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] (letfn [(select-first [state]
(if (= type :builtin) (if (= type :builtin)
(assoc-in state [:dashboard :collection-id] 1) (assoc-in state [:dashboard :collection-id] 1)
(let [coll (sort-by :id (vals (:colors-by-id state)))] (let [colls (sort-by :id (vals (:colors-by-id state)))]
(assoc-in state [:dashboard :collection-id] (:id (first coll))))))] (assoc-in state [:dashboard :collection-id] (:id (first colls))))))]
(reify (reify
rs/UpdateEvent rs/UpdateEvent
(-apply-update [_ state] (-apply-update [_ state]