Skip to content

Commit 333fde3

Browse files
committed
feat: Change the default from global to us
https://harperdb.atlassian.net/browse/STUDIO-500
1 parent 6858ffa commit 333fde3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/features/clusters/upsert/ClusterForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ export function ClusterForm({
208208
const firstSelectedRegion = regionNameToLatencyToRegion?.[firstRegion.regionName]?.[firstRegion.latencyDescription];
209209
if (!allowedRegionIds.includes(firstSelectedRegion?.id)) {
210210
const possibleRegions = regionLocations?.filter(r => allowedRegionIds.includes(r.id));
211-
const regionToSelect = possibleRegions?.find(r => r.region === 'Global') || possibleRegions?.[0];
211+
const regionToSelect = possibleRegions?.find(r => r.region === 'US') || possibleRegions?.[0];
212212
if (regionToSelect) {
213213
form.setValue('regionPlans.0.regionName', regionToSelect.region);
214214
form.setValue('regionPlans.0.latencyDescription', regionToSelect.latencyDescription);

src/features/clusters/upsert/lib/calculateDefaultDeploymentPerformanceAndRegionPlans.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export function calculateDefaultDeploymentPerformanceAndRegionPlans(
1313
const allowedRegionIds = planToSelect?.allowedRegionIds;
1414
if (planToSelect) {
1515
const allowedRegions = allowedRegionIds ? regionLocations.filter(regionLocation => allowedRegionIds.includes(regionLocation.id)) : regionLocations;
16-
const regionToSelect = allowedRegions.find(regionLocation => regionLocation.region === 'Global') || allowedRegions[0];
16+
const regionToSelect = allowedRegions.find(regionLocation => regionLocation.region === 'US') || allowedRegions[0];
1717
if (regionToSelect) {
1818
return {
1919
deploymentDescription: planToSelect.deploymentDescription,

0 commit comments

Comments
 (0)