@@ -81,6 +81,7 @@ import { LoadingState } from '../ciConfig/types'
81
81
import { pipelineContext } from '../workflowEditor/workflowEditor'
82
82
import { calculateLastStepDetailsLogic , checkUniqueness , validateTask } from '../cdPipeline/cdpipeline.util'
83
83
import { PipelineContext , PipelineFormDataErrorType } from '../workflowEditor/types'
84
+ import { EnvironmentWithSelectPickerType } from './types'
84
85
85
86
const processPluginData = importComponentFromFELibrary ( 'processPluginData' , null , 'function' )
86
87
const validatePlugins = importComponentFromFELibrary ( 'validatePlugins' , null , 'function' )
@@ -130,8 +131,8 @@ export default function CIPipeline({
130
131
postBuildStage : Map < string , VariableType > [ ]
131
132
} > ( { preBuildStage : [ ] , postBuildStage : [ ] } )
132
133
const [ isSecurityModuleInstalled , setSecurityModuleInstalled ] = useState < boolean > ( false )
133
- const [ selectedEnv , setSelectedEnv ] = useState < Environment > ( )
134
- const [ environments , setEnvironments ] = useState < Environment [ ] > ( [ ] )
134
+ const [ selectedEnv , setSelectedEnv ] = useState < EnvironmentWithSelectPickerType > ( )
135
+ const [ environments , setEnvironments ] = useState < EnvironmentWithSelectPickerType [ ] > ( [ ] )
135
136
const [ formData , setFormData ] = useState < PipelineFormType > ( {
136
137
name : '' ,
137
138
args : [ ] ,
0 commit comments