Skip to content

Commit 92af0e9

Browse files
committed
fix(core): make sure add method is available before calling
1 parent 395d6bf commit 92af0e9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

libs/core/src/lib/renderer/utils.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,9 @@ export function attachThreeChild(parent: NgtInstanceNode, child: NgtInstanceNode
121121
added = true;
122122
}
123123

124-
pLS.add(child, added ? 'objects' : 'nonObjects');
124+
if (pLS.add) {
125+
pLS.add(child, added ? 'objects' : 'nonObjects');
126+
}
125127

126128
if (cLS.parent && untracked(cLS.parent) !== parent) {
127129
cLS.setParent(parent);

0 commit comments

Comments
 (0)