mirror of
https://github.com/penpot/penpot.git
synced 2025-05-28 08:56:11 +02:00
🐛 Remove root when creating nested components
This commit is contained in:
parent
65cc025994
commit
e8aab8b0bf
2 changed files with 34 additions and 21 deletions
|
@ -24,7 +24,7 @@
|
|||
(defn is-main-instance-subroot
|
||||
[shape]
|
||||
(t/is (some? (:component-id shape))) ; shape-ref may or may be not nil
|
||||
(t/is (= (:component-root shape) true)))
|
||||
(t/is (nil? (:component-root shape))))
|
||||
|
||||
(defn is-main-instance-child
|
||||
[shape]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue