🐛 Fixes problems with top-level shape selection

This commit is contained in:
alonso.torres 2021-01-05 15:19:00 +01:00
parent 66606b7309
commit 2f0fcaf5d3
2 changed files with 19 additions and 5 deletions

View file

@ -574,6 +574,7 @@
(let [page-id (:current-page-id state)
objects (lookup-page-objects state page-id)
to-move-shapes (->> (cp/select-toplevel-shapes objects {:include-frames? false})
(filterv #(= (:frame-id %) uuid/zero))
(mapv :id)
(d/enumerate)
(filterv (comp shapes second)))