🐛 Fix restore component

This commit is contained in:
Alejandro Alonso 2024-03-12 12:43:42 +01:00
parent fb58d7a4cc
commit 56bc70dffe
2 changed files with 2 additions and 3 deletions

View file

@ -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