diff --git a/common/src/app/common/types/shape/layout.cljc b/common/src/app/common/types/shape/layout.cljc index e7d8867b98..c669aae620 100644 --- a/common/src/app/common/types/shape/layout.cljc +++ b/common/src/app/common/types/shape/layout.cljc @@ -569,7 +569,7 @@ ;; TODO -;; Assign cells takes the children and move them into the aloted cells. If there are not enough cells it creates +;; Assign cells takes the children and move them into the allotted cells. If there are not enough cells it creates ;; not-tracked rows/columns and put the shapes there ;; Should be caled each time a child can be added like: ;; - On shape creation diff --git a/frontend/src/app/main/data/workspace/shapes.cljs b/frontend/src/app/main/data/workspace/shapes.cljs index b79c545fc0..525fc53971 100644 --- a/frontend/src/app/main/data/workspace/shapes.cljs +++ b/frontend/src/app/main/data/workspace/shapes.cljs @@ -82,7 +82,6 @@ (ptk/reify ::add-shape ptk/WatchEvent (watch [it state _] - (.log js/console (clj->js attrs)) (let [page-id (:current-page-id state) objects (wsh/lookup-page-objects state page-id) selected (wsh/lookup-selected state) diff --git a/frontend/src/app/main/data/workspace/transforms.cljs b/frontend/src/app/main/data/workspace/transforms.cljs index 08c23c20f1..5b22c724fc 100644 --- a/frontend/src/app/main/data/workspace/transforms.cljs +++ b/frontend/src/app/main/data/workspace/transforms.cljs @@ -439,8 +439,7 @@ (cph/selected-with-children objects selected)) exclude-frames-siblings - exclude-frames - #_(into exclude-frames + (into exclude-frames (comp (mapcat (partial cph/get-siblings-ids objects)) (filter (partial ctl/any-layout-immediate-child-id? objects))) selected)