0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-25 07:58:49 -05:00

Minor fixes on colorpalette.

This commit is contained in:
Andrey Antukh 2016-01-20 20:03:48 +02:00
parent 12980b63f6
commit d89dad3827

View file

@ -44,7 +44,7 @@
(let [local (:rum/local own)
flags (rum/react wb/flags-l)
collections-by-id (rum/react collections-by-id-l)
collections (vals collections-by-id)
collections (sort-by :name (vals collections-by-id))
collection (if-let [collid (:selected @local)]
(get collections-by-id collid)
(first collections))
@ -55,7 +55,7 @@
[:div.color-palette
[:div.color-palette-actions
[:select.input-select {:on-change select-collection}
(for [collection (vals collections-by-id)]
(for [collection collections]
[:option {:key (str (:id collection))
:value (pr-str (:id collection))}
(:name collection)])]