🐛 Fix exception on changing hex color on colorpicker gradient editor (#6718)

This commit is contained in:
Andrey Antukh 2025-06-18 17:59:14 +02:00 committed by GitHub
parent f0b82864dd
commit 54643b79f6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -116,7 +116,8 @@
(fn [value]
(let [color (-> color
(assoc :color value)
(dissoc :gradient))]
(dissoc :gradient)
(select-keys types.color/color-attrs))]
(st/emit! (dwc/add-recent-color color)
(on-change color)))))