0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-13 16:21:57 -05:00

🐛 Fix wrong shape-ref on duplicate component

This commit is contained in:
Pablo Alba 2023-03-16 10:52:27 +01:00 committed by Andrés Moya
parent e59d106315
commit 6889440014

View file

@ -170,7 +170,7 @@
(-> (gsh/move delta)
(dissoc :touched :main-instance?))
(nil? (:shape-ref original-shape))
(and (not main-instance?) (nil? (:shape-ref original-shape)))
(assoc :shape-ref (:id original-shape))
(nil? (:parent-id original-shape))