0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-09 08:20:45 -05:00

🐛 Fix can't move a layer on a copy

This commit is contained in:
Pablo Alba 2024-04-04 13:36:40 +02:00 committed by Andrés Moya
parent e33b08f47f
commit 8c72770fec

View file

@ -505,7 +505,9 @@
ids (if (nil? ids) selected ids)
shapes (into []
(comp (map (d/getf objects))
(remove ctk/in-component-copy-not-head?))
(remove #(let [parent (get objects (:parent-id %))]
(and (ctk/in-component-copy? parent)
(ctl/any-layout? parent)))))
ids)
duplicate-move-started? (get-in state [:workspace-local :duplicate-move-started?] false)