mirror of
https://github.com/penpot/penpot.git
synced 2026-04-25 11:18:36 +00: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:
commit
70c9314f7f
@ -375,8 +375,11 @@
|
|||||||
{:skip-components? true
|
{:skip-components? true
|
||||||
:bottom-frames? true
|
:bottom-frames? true
|
||||||
;; We must avoid that destiny frame is inside the component frame
|
;; 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)
|
frame (get-shape container frame-id)
|
||||||
component-frame (get-component-shape objects frame {:allow-main? true})
|
component-frame (get-component-shape objects frame {:allow-main? true})
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user