File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
src/Pages/Applications/DevtronApps/Details/AppConfigurations/Navigation Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 6
6
CollapsibleList ,
7
7
CollapsibleListConfig ,
8
8
EnvResourceType ,
9
- getSelectPickerOptionByValue ,
10
9
SelectPicker ,
11
10
SelectPickerOptionType ,
12
11
SelectPickerVariantType ,
@@ -69,8 +68,8 @@ export const EnvConfigurationsNav = ({
69
68
environments && environments . find ( ( environment ) => environment . id === + params [ paramToCheck ] )
70
69
const selectedNavEnvironmentOptions = {
71
70
..._environmentData ,
72
- label : _environmentData ?. name ,
73
- value : _environmentData ?. id ,
71
+ label : _environmentData ?. name || BASE_CONFIGURATIONS . name ,
72
+ value : _environmentData ?. id || BASE_CONFIGURATIONS . id ,
74
73
isProtected : _environmentData ?. isProtected ,
75
74
}
76
75
@@ -271,7 +270,7 @@ export const EnvConfigurationsNav = ({
271
270
inputId = "env-config-selector"
272
271
classNamePrefix = "env-config-selector"
273
272
isClearable = { false }
274
- value = { getSelectPickerOptionByValue ( envOptions , envId ? + envId : - 1 ) }
273
+ value = { environmentData }
275
274
options = { envOptions }
276
275
getOptionLabel = { ( option ) => `${ option . label } ` }
277
276
getOptionValue = { ( option ) => `${ option . value } ` }
You can’t perform that action at this time.
0 commit comments