0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-10 00:58:26 -05:00

🐛 Fix problem with order in color palette

This commit is contained in:
alonso.torres 2021-06-18 10:36:04 +02:00
parent 9e3ba85b72
commit c21ad48370

View file

@ -210,7 +210,7 @@
(cond
(= selected :recent) (reverse recent-colors)
(= selected :file) (->> (vals file-colors) (sort-by :name))
:else (library->colors shared-libs selected))))))
:else (->> (library->colors shared-libs selected) (sort-by :name)))))))
(mf/use-effect
(mf/deps recent-colors)