🐛 Remove root when creating nested components

This commit is contained in:
Andrés Moya 2023-10-05 12:07:04 +02:00 committed by Andrey Antukh
parent 65cc025994
commit e8aab8b0bf
2 changed files with 34 additions and 21 deletions

View file

@ -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]