0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-24 23:49:45 -05:00

🐛 Properly dissoc :metadata prop on image->path conversion.

This commit is contained in:
Andrey Antukh 2021-07-15 11:57:45 +02:00
parent 5126c85623
commit 899dc5b680

View file

@ -139,8 +139,8 @@
(d/without-keys dissoc-attrs)
(assoc :type :path)
(assoc :content new-content)
(cond-> (= :image type)
(assoc :fill-image metadata))))
(cond-> (= :image type) (-> (assoc :fill-image metadata)
(dissoc :metadata)))))
;; Do nothing if the shape is not of a correct type
shape))