diff --git a/backend/src/app/features/components_v2.clj b/backend/src/app/features/components_v2.clj index d365ca10e..89d0bd8e8 100644 --- a/backend/src/app/features/components_v2.clj +++ b/backend/src/app/features/components_v2.clj @@ -449,6 +449,14 @@ (some? (:main-instance shape)) (dissoc :main-instance) + (and (contains? shape :transform) + (not (gmt/valid-matrix? (:transform shape)))) + (assoc :transform (gmt/matrix)) + + (and (contains? shape :transform-inverse) + (not (gmt/valid-matrix? (:transform-inverse shape)))) + (assoc :transform-inverse (gmt/matrix)) + ;; Fix broken fills (seq (:fills shape)) (update :fills (fn [fills] (filterv valid-fill? fills)))