From 3bdfd84f336134cefb7214fa0ec19e2ef457994d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 23 Oct 2024 13:10:29 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- packages/base/src/3dview/mainview.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/base/src/3dview/mainview.tsx b/packages/base/src/3dview/mainview.tsx index 1b5b2895..0c2eade5 100644 --- a/packages/base/src/3dview/mainview.tsx +++ b/packages/base/src/3dview/mainview.tsx @@ -1068,9 +1068,11 @@ export class MainView extends React.Component { this._meshGroup?.add(boundingBox); - const matchingChild = this._meshGroup?.children.find(child => child.name.startsWith(selectedMesh.name)); + const matchingChild = this._meshGroup?.children.find(child => + child.name.startsWith(selectedMesh.name) + ); console.log(matchingChild); - + if (matchingChild) { this._transformControls.attach(matchingChild as BasicMesh); this._transformControls.visible = true;