Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 29, 2024
1 parent ef4e8cb commit 3c1e764
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/base/src/3dview/mainview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1525,7 +1525,10 @@ export class MainView extends React.Component<IProps, IStates> {
old => ({ ...old, transform: transformEnabled }),
() => {
// It's a no-op if we try to enable the transform but there is no selection
if (transformEnabled && Object.keys(this._currentSelection || {}).length === 0) {
if (
transformEnabled &&
Object.keys(this._currentSelection || {}).length === 0
) {
return;
}

Expand Down

0 comments on commit 3c1e764

Please sign in to comment.