mirror of
https://github.com/penpot/penpot.git
synced 2025-08-07 14:38:33 +02:00
🐛 Fix restore component
This commit is contained in:
parent
fb58d7a4cc
commit
56bc70dffe
2 changed files with 2 additions and 3 deletions
|
@ -433,6 +433,8 @@
|
|||
main-component (ctf/get-component libraries file-id component-id)
|
||||
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))
|
||||
|
||||
instantiate-component
|
||||
#(dwlh/generate-instantiate-component changes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue