mirror of
https://github.com/penpot/penpot.git
synced 2025-05-12 11:46:37 +02: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)
|
moved-component (gsh/move component-root delta)
|
||||||
pos (gpt/point (:x moved-component) (:y moved-component))
|
pos (gpt/point (:x moved-component) (:y moved-component))
|
||||||
origin-frame (get-in page [:objects frame-id])
|
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
|
instantiate-component
|
||||||
#(dwlh/generate-instantiate-component changes
|
#(dwlh/generate-instantiate-component changes
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue