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:
parent
a3ca905f37
commit
054ffbe396
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue