Skip to content

Commit 841bd69

Browse files
Apply suggestions from code review
Co-authored-by: Sergey Petushkov <[email protected]>
1 parent ddc2f45 commit 841bd69

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

packages/compass-sidebar/src/components/multiple-connections/sidebar.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,7 @@ export function MultipleConnectionSidebar({
183183
onConnect={(connectionInfo) => {
184184
void connect(connectionInfo);
185185
}}
186-
onConnectInNewWindow={(connectionInfo) => {
187-
connectInNewWindow(connectionInfo);
188-
}}
186+
onConnectInNewWindow={connectInNewWindow}
189187
onNewConnection={createNewConnection}
190188
onEditConnection={(connectionInfo) => {
191189
editConnection(connectionInfo.id);

packages/compass/src/main/auto-connect.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { hasDisallowedConnectionStringOptions } from './validate-connection-stri
55
import COMPASS_ICON from './icon';
66
import { createLogger, mongoLogId } from '@mongodb-js/compass-logging';
77
import { redactConnectionString } from 'mongodb-connection-string-url';
8-
import { UUID } from 'mongodb';
8+
import { UUID } from 'bson';
99
const { log } = createLogger('COMPASS-AUTO-CONNECT-MAIN');
1010

1111
export type AutoConnectPreferences = Partial<

0 commit comments

Comments
 (0)