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:
parent
a8cf072bda
commit
e8c35c2de6
1 changed files with 10 additions and 0 deletions
|
@ -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))))
|
||||||
|
|
Loading…
Add table
Reference in a new issue