0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-24 07:29:08 -05:00

🐛 Fix duplicate board

This commit is contained in:
Alejandro Alonso 2024-03-15 14:15:49 +01:00
parent a3ca905f37
commit 054ffbe396

View file

@ -434,7 +434,9 @@
moved-component (gsh/move component-root delta)
pos (gpt/point (:x moved-component) (:y moved-component))
origin-frame (get-in page [:objects frame-id])
delta (gpt/subtract delta (-> origin-frame :selrect gpt/point))
delta (cond-> delta
(some? origin-frame)
(gpt/subtract (-> origin-frame :selrect gpt/point)))
instantiate-component
#(dwlh/generate-instantiate-component changes