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 2f58a86 commit e651d6eCopy full SHA for e651d6e
src/components/CIPipelineN/EnvironmentList.tsx
@@ -82,6 +82,10 @@ export const EnvironmentList = ({
82
return _selectedEnv
83
}
84
85
+ const getIsOptionSelected = (option: EnvironmentWithSelectPickerType): boolean => {
86
+ return selectedEnv?.id === option.id
87
+ }
88
+
89
const getEnvironmentSelectLabel = (): JSX.Element => {
90
if (isBuildStage) {
91
return <span>Execute tasks in environment</span>
@@ -107,6 +111,7 @@ export const EnvironmentList = ({
107
111
onChange={selectEnvironment}
108
112
size={ComponentSizeType.large}
109
113
variant={isBorderLess ? SelectPickerVariantType.COMPACT : SelectPickerVariantType.DEFAULT}
114
+ isOptionSelected={getIsOptionSelected}
110
115
/>
116
</div>
117
0 commit comments