mirror of
https://github.com/penpot/penpot.git
synced 2025-06-09 16:41:38 +02:00
🐛 Fix problem changing fill images
This commit is contained in:
parent
e8b29c3cfc
commit
a9052e2690
1 changed files with 3 additions and 1 deletions
|
@ -602,9 +602,11 @@
|
||||||
(update-in state [:stops stop] (fn [data] (->> changes
|
(update-in state [:stops stop] (fn [data] (->> changes
|
||||||
(merge data)
|
(merge data)
|
||||||
(materialize-color-components))))
|
(materialize-color-components))))
|
||||||
|
|
||||||
(-> state
|
(-> state
|
||||||
(dissoc :gradient :stops :editing-stop)
|
(dissoc :gradient :stops :editing-stop)
|
||||||
(assoc :type :color)))))))
|
(cond-> (not= :image (:type state))
|
||||||
|
(assoc :type :color))))))))
|
||||||
ptk/WatchEvent
|
ptk/WatchEvent
|
||||||
(watch [_ state _]
|
(watch [_ state _]
|
||||||
(when add-recent?
|
(when add-recent?
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue