0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-25 06:01:46 -05:00

🐛 Fix a copy inside a copy shouldn't be able to do an Update Main

This commit is contained in:
Pablo Alba 2023-12-11 13:41:56 +01:00
parent 653bc97aa1
commit c236091645

View file

@ -13,6 +13,7 @@
[app.common.spec :as us]
[app.common.thumbnails :as thc]
[app.common.types.component :as ctk]
[app.common.types.container :as ctn]
[app.common.types.file :as ctf]
[app.main.data.modal :as modal]
[app.main.data.workspace :as dw]
@ -354,6 +355,7 @@
(not is-dangling?)
(or (not components-v2)
(and (not main-instance?)
(not (ctn/has-any-copy-parent? objects shape))
(cfh/component-touched? objects (:id shape)))))