diff --git a/frontend/src/app/main/ui/viewer/shapes.cljs b/frontend/src/app/main/ui/viewer/shapes.cljs index 13f9c1048..0c494781a 100644 --- a/frontend/src/app/main/ui/viewer/shapes.cljs +++ b/frontend/src/app/main/ui/viewer/shapes.cljs @@ -468,13 +468,13 @@ (mf/with-memo [objects] (svg-raw-container-factory objects all-objects))] (when (and shape (not (:hidden shape))) - (let [shape (-> shape - #_(gsh/transform-shape) - (gsh/translate-to-frame frame)) - - opts #js {:shape shape - :objects objects - :all-objects all-objects}] + (let [shape (if frame + (gsh/translate-to-frame shape frame) + shape) + + opts #js {:shape shape + :objects objects + :all-objects all-objects}] (case (:type shape) :frame [:> frame-container opts] :text [:> text-wrapper opts]