Skip to content

Commit 0e1af64

Browse files
Apply suggestions from code review
Co-authored-by: Sergey Petushkov <[email protected]>
1 parent acdbeba commit 0e1af64

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

package-lock.json

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@
237237
"@mongodb-js/webpack-config-compass": "^1.6.0",
238238
"@segment/analytics-node": "^1.1.4",
239239
"ampersand-view": "^9.0.0",
240+
"bson": "^6.10.1",
240241
"chai": "^4.3.4",
241242
"chalk": "^4.1.2",
242243
"clean-stack": "^2.0.0",

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)