0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-09 06:11:23 -05:00

🐛 Avoid linking to remote main, when adding a shape to a copy

For example, when doing a reset overrides after a component switch
This commit is contained in:
Andrés Moya 2023-12-13 13:07:38 +01:00
parent 936fb2b6f1
commit 02986f81bd

View file

@ -948,11 +948,11 @@
(:id parent-shape) (:id parent-shape)
(:frame-id parent-shape))) (:frame-id parent-shape)))
(nil? (:shape-ref original-shape))
(assoc :shape-ref (:id original-shape))
set-remote-synced? set-remote-synced?
(assoc :remote-synced true)))) (assoc :remote-synced true)
:always
(assoc :shape-ref (:id original-shape)))))
update-original-shape (fn [original-shape _new-shape] update-original-shape (fn [original-shape _new-shape]
original-shape) original-shape)