Skip to content

Commit 96f7732

Browse files
committed
fix: potential outlines crash
1 parent 009857a commit 96f7732

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/Outlines.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export function Outlines({
108108
oldGeometry.current = parent.geometry
109109

110110
// Remove old mesh
111-
let mesh = group.children[0] as any
111+
let mesh = group.children?.[0] as any
112112
if (mesh) {
113113
if (angle) mesh.geometry.dispose()
114114
group.remove(mesh)

0 commit comments

Comments
 (0)