0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-12 15:51:37 -05:00

🐛 Fix invalid shape type :icon on comp-v2 migration

This commit is contained in:
Andrey Antukh 2024-01-31 18:56:06 +01:00
parent a8cf072bda
commit e8c35c2de6

View file

@ -370,6 +370,16 @@
:selrect selrect :selrect selrect
:points points)) :points points))
(and (= :icon (:type shape))
(grc/valid-rect? (:selrect shape))
(valid-shape-points? (:points shape)))
(-> shape
(assoc :type :rect)
(dissoc :content)
(dissoc :metadata)
(dissoc :segments)
(dissoc :x1 :y1 :x2 :y2))
(and (cfh/group-shape? shape) (and (cfh/group-shape? shape)
(grc/valid-rect? (:selrect shape)) (grc/valid-rect? (:selrect shape))
(not (valid-shape-points? (:points shape)))) (not (valid-shape-points? (:points shape))))