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:
parent
653bc97aa1
commit
c236091645
1 changed files with 2 additions and 0 deletions
|
@ -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)))))
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue