0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-15 01:01:30 -05:00

Review fixes

This commit is contained in:
alonso.torres 2023-03-03 10:53:46 +01:00
parent 23104b28b6
commit a12baf684c
3 changed files with 2 additions and 4 deletions

View file

@ -569,7 +569,7 @@
;; TODO ;; 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 ;; not-tracked rows/columns and put the shapes there
;; Should be caled each time a child can be added like: ;; Should be caled each time a child can be added like:
;; - On shape creation ;; - On shape creation

View file

@ -82,7 +82,6 @@
(ptk/reify ::add-shape (ptk/reify ::add-shape
ptk/WatchEvent ptk/WatchEvent
(watch [it state _] (watch [it state _]
(.log js/console (clj->js attrs))
(let [page-id (:current-page-id state) (let [page-id (:current-page-id state)
objects (wsh/lookup-page-objects state page-id) objects (wsh/lookup-page-objects state page-id)
selected (wsh/lookup-selected state) selected (wsh/lookup-selected state)

View file

@ -439,8 +439,7 @@
(cph/selected-with-children objects selected)) (cph/selected-with-children objects selected))
exclude-frames-siblings exclude-frames-siblings
exclude-frames (into exclude-frames
#_(into exclude-frames
(comp (mapcat (partial cph/get-siblings-ids objects)) (comp (mapcat (partial cph/get-siblings-ids objects))
(filter (partial ctl/any-layout-immediate-child-id? objects))) (filter (partial ctl/any-layout-immediate-child-id? objects)))
selected) selected)