0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-10 17:18:21 -05:00

🐛 Fixes problem with palette.

This commit is contained in:
alonso.torres 2020-10-28 10:24:24 +01:00 committed by Hirunatan
parent 1706d13448
commit 5d2b8ba2ac

View file

@ -191,8 +191,10 @@
[:span.right-arrow {:on-click on-right-arrow-click} i/arrow-slide]]))
(defn library->colors [shared-libs selected]
(map #(merge {:file-id selected} %)
(vals (get-in shared-libs [selected :data :colors]))))
(map #(merge % {:file-id selected})
(-> shared-libs
(get-in [selected :data :colors])
(vals))))
(mf/defc colorpalette
[{:keys [left-sidebar?]}]