🐛 Fix issue on changing from gradient to solid color on colorpicker

This commit is contained in:
Andrey Antukh 2025-06-10 17:47:00 +02:00
parent 027a7a457d
commit 6b4a85cd15

View File

@ -778,7 +778,8 @@
[{:keys [type current-color stops gradient opacity] :as state}]
(cond
(= type :color)
(clear-color-components current-color)
(-> (clear-color-components current-color)
(dissoc :offset))
(= type :image)
(clear-image-components current-color)