0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-15 17:21:17 -05:00

🐛 Fix issues introduced in previous merge

This commit is contained in:
Andrey Antukh 2022-09-20 08:58:57 +02:00
parent 32b8c17dad
commit 978b309b04
3 changed files with 2 additions and 3 deletions

View file

@ -1487,7 +1487,7 @@
page-id (:current-page-id state)
frame-id (-> (wsh/lookup-page-objects state page-id)
(ctst/top-nested-frame @ms/mouse-position))
shape (cp/setup-rect-selrect
shape (cts/setup-rect-selrect
{:id id
:type :text
:name "Text"

View file

@ -103,7 +103,6 @@
(gpt/point (+ (:width main-instance-shape) 50) 0))
component-root (ctk/get-component-root component)
frame-id (ctst/top-nested-frame objects (gpt/add orig-pos delta))
[new-component-shape new-component-shapes _]
(ctst/clone-object component-root

View file

@ -285,7 +285,7 @@
page-id (:current-page-id state)
frame-id (-> (wsh/lookup-page-objects state page-id)
(ctst/top-nested-frame {:x frame-x :y frame-y}))
shape (-> (cp/make-minimal-shape type)
shape (-> (cts/make-minimal-shape type)
(merge data)
(merge {:x x :y y})
(assoc :frame-id frame-id)