mirror of
https://github.com/penpot/penpot.git
synced 2026-09-13 15:38:38 +00:00
🐛 Fix can't move a layer on a copy
This commit is contained in:
parent
e33b08f47f
commit
8c72770fec
@ -505,7 +505,9 @@
|
|||||||
ids (if (nil? ids) selected ids)
|
ids (if (nil? ids) selected ids)
|
||||||
shapes (into []
|
shapes (into []
|
||||||
(comp (map (d/getf objects))
|
(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)
|
ids)
|
||||||
|
|
||||||
duplicate-move-started? (get-in state [:workspace-local :duplicate-move-started?] false)
|
duplicate-move-started? (get-in state [:workspace-local :duplicate-move-started?] false)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user