Skip to content

Commit b4bf14d

Browse files
committed
fix(core): check for lS.parent before calling untracked on it
1 parent 6a1b5a8 commit b4bf14d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ export function processThreeEvent(
198198

199199
if (eventName === SPECIAL_EVENTS.ATTACHED) {
200200
lS.onAttach = callback;
201-
if (untracked(lS.parent)) {
201+
if (lS.parent && untracked(lS.parent)) {
202202
lS.onAttach({ parent: untracked(lS.parent), node: instance });
203203
}
204204

0 commit comments

Comments
 (0)