0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-08 08:09:14 -05:00

Merge pull request #4685 from penpot/palba-fix-validation-error-coping-main-frame

🐛 Fix verification error on coping main component with frame over a copy
This commit is contained in:
Alejandro 2024-06-07 09:59:39 +02:00 committed by GitHub
commit 70c9314f7f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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