We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 245a263 commit e7dd7a6Copy full SHA for e7dd7a6
src/common/atlas/cluster.ts
@@ -50,9 +50,7 @@ export function formatCluster(cluster: ClusterDescription20240805): Cluster {
50
};
51
});
52
53
- const instanceSize =
54
- regionConfigs.length > 0 && regionConfigs[0]?.instanceSize ? regionConfigs[0].instanceSize : "UNKNOWN";
55
-
+ const instanceSize = regionConfigs[0]?.instanceSize ?? "UNKNOWN";
56
const clusterInstanceType = instanceSize == "M0" ? "FREE" : "DEDICATED";
57
58
return {
0 commit comments