mirror of
https://github.com/penpot/penpot.git
synced 2026-04-30 13:49:06 +00:00
🐛 Remove bugged colors from recents
This commit is contained in:
parent
f444d3d01d
commit
199142045f
@ -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…
x
Reference in New Issue
Block a user