mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
🐛 Remove root when creating nested components
This commit is contained in:
committed by
Andrey Antukh
parent
65cc025994
commit
e8aab8b0bf
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user