File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
redisinsight/ui/src/components/oauth/oauth-select-plan Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -67,12 +67,12 @@ const OAuthSelectPlan = () => {
67
67
return
68
68
}
69
69
70
- const defaultRegion = isTFSource ? first ( tfProviderRegions ) || DEFAULT_REGION : DEFAULT_REGION
70
+ const defaultRegions = isTFSource ? tfProviderRegions || [ DEFAULT_REGION ] : [ DEFAULT_REGION ]
71
71
72
72
const filteredPlans = filter ( plansInit , { provider : providerSelected } )
73
73
. sort ( ( a , b ) => ( a ?. details ?. displayOrder || 0 ) - ( b ?. details ?. displayOrder || 0 ) )
74
74
75
- const defaultPlan = filteredPlans . find ( ( { region } ) => region === defaultRegion )
75
+ const defaultPlan = filteredPlans . find ( ( { region = '' } ) => defaultRegions ?. includes ( region ) )
76
76
77
77
const planId = ( defaultPlan || first ( filteredPlans ) || { } ) . id ?. toString ( ) || ''
78
78
You can’t perform that action at this time.
0 commit comments