0
Fork 0
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:
Pablo Alba 2024-06-06 10:24:39 +02:00
parent 2aa1b97769
commit 91fd8c4f81

View file

@ -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})