0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-10 00:58:26 -05:00

🐛 Fix problem changing fill images

This commit is contained in:
alonso.torres 2024-04-09 12:01:56 +02:00
parent e8b29c3cfc
commit a9052e2690

View file

@ -602,9 +602,11 @@
(update-in state [:stops stop] (fn [data] (->> changes
(merge data)
(materialize-color-components))))
(-> state
(dissoc :gradient :stops :editing-stop)
(assoc :type :color)))))))
(cond-> (not= :image (:type state))
(assoc :type :color))))))))
ptk/WatchEvent
(watch [_ state _]
(when add-recent?