diff --git a/backend/src/app/features/components_v2.clj b/backend/src/app/features/components_v2.clj index 72e3fda923..9036d105ff 100644 --- a/backend/src/app/features/components_v2.clj +++ b/backend/src/app/features/components_v2.clj @@ -370,6 +370,16 @@ :selrect selrect :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) (grc/valid-rect? (:selrect shape)) (not (valid-shape-points? (:points shape))))