mirror of
https://github.com/penpot/penpot.git
synced 2025-03-17 18:21:23 -05:00
🐛 Remove bugged colors from recents
This commit is contained in:
parent
f444d3d01d
commit
199142045f
2 changed files with 2 additions and 1 deletions
|
@ -37,7 +37,7 @@
|
|||
(mf/defc palette
|
||||
[{:keys [current-colors recent-colors file-colors shared-libs selected on-select]}]
|
||||
(let [;; We had to do this due to a bug that leave some bugged colors
|
||||
current-colors (filter #(some? (:color %)) current-colors)
|
||||
current-colors (filter #(or (:gradient %) (:color %)) current-colors)
|
||||
state (mf/use-state {:show-menu false})
|
||||
|
||||
width (:width @state 0)
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
shared-libs (mf/deref refs/workspace-libraries)
|
||||
file-colors (mf/deref refs/workspace-file-colors)
|
||||
recent-colors (mf/deref refs/workspace-recent-colors)
|
||||
recent-colors (filter #(or (:gradient %) (:color %)) recent-colors)
|
||||
|
||||
on-library-change
|
||||
(mf/use-fn
|
||||
|
|
Loading…
Add table
Reference in a new issue