Skip to content

Commit 980508f

Browse files
committed
chore(connections): no need for promise.all
1 parent a8f551c commit 980508f

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

packages/compass-connections/src/stores/connections-store-redux.ts

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1772,13 +1772,17 @@ const connectWithOptions = (
17721772
track(
17731773
'New Connection',
17741774
async () => {
1775-
const [
1776-
{ dataLake, genuineMongoDB, host, build, isAtlas, isLocalAtlas },
1777-
[extraInfo, resolvedHostname],
1778-
] = await Promise.all([
1779-
instanceInfo,
1780-
getExtraConnectionData(connectionInfo),
1781-
]);
1775+
const {
1776+
dataLake,
1777+
genuineMongoDB,
1778+
host,
1779+
build,
1780+
isAtlas,
1781+
isLocalAtlas,
1782+
} = instanceInfo;
1783+
const [extraInfo, resolvedHostname] = await getExtraConnectionData(
1784+
connectionInfo
1785+
);
17821786

17831787
const connections = getState().connections;
17841788
// Counting all connections, we need to filter out any connections currently being created

0 commit comments

Comments
 (0)