mirror of
https://github.com/penpot/penpot.git
synced 2025-01-22 14:39:45 -05:00
🐛 Fix verror on coping main component with frame over a copy
This commit is contained in:
parent
2aa1b97769
commit
91fd8c4f81
1 changed files with 5 additions and 2 deletions
|
@ -375,8 +375,11 @@
|
|||
{:skip-components? true
|
||||
:bottom-frames? true
|
||||
;; We must avoid that destiny frame is inside the component frame
|
||||
:validator #(nil? (get component-children (:id %)))}))
|
||||
|
||||
:validator #(and
|
||||
;; We must avoid that destiny frame is inside the component frame
|
||||
(nil? (get component-children (:id %)))
|
||||
;; We must avoid that destiny frame is inside a copy
|
||||
(not (ctk/in-component-copy? %)))}))
|
||||
frame (get-shape container frame-id)
|
||||
component-frame (get-component-shape objects frame {:allow-main? true})
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue