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:
parent
1706d13448
commit
5d2b8ba2ac
1 changed files with 4 additions and 2 deletions
|
@ -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?]}]
|
||||
|
|
Loading…
Add table
Reference in a new issue