Skip to content

Commit dd54676

Browse files
committed
Revert "remove unused'"
This reverts commit 2a14569.
1 parent 2a14569 commit dd54676

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

packages/compass-web/src/connection-storage.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,6 @@ export class AtlasCloudConnectionStorage
306306

307307
return {
308308
...connectionInfo,
309-
id: connectionInfo.atlasMetadata.clusterUniqueId,
310309
connectionOptions: {
311310
...connectionInfo.connectionOptions,
312311
lookup: () => {

packages/compass-web/src/entrypoint.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ const WithConnectionsStore: React.FunctionComponent<{
234234
useEffect(() => {
235235
const intervalId = setInterval(() => {
236236
void actions.refreshConnections();
237-
}, /* Matches default polling intervals in mms codebase */ 5_000);
237+
}, /* Matches default polling intervals in mms codebase */ 60_000);
238238
return () => {
239239
clearInterval(intervalId);
240240
};
@@ -286,8 +286,6 @@ const CompassWeb = ({
286286
? initialWorkspaceRef.current.connectionId
287287
: initialAutoconnectId ?? undefined;
288288

289-
console.log('AUTOCONNECT ID', autoconnectId);
290-
291289
const onTrackRef = useRef(onTrack);
292290

293291
const telemetryOptions = useRef<TelemetryServiceOptions>({
@@ -302,7 +300,7 @@ const CompassWeb = ({
302300
<GlobalAppRegistryProvider value={appRegistry.current}>
303301
<AppRegistryProvider scopeName="Compass Web Root">
304302
<CompassComponentsProvider
305-
darkMode={false}
303+
darkMode={darkMode}
306304
// Making sure that compass-web modals and tooltips are definitely not
307305
// hidden by Cloud UI sidebar and page header
308306
stackedElementsZIndex={10_000}

0 commit comments

Comments
 (0)