Skip to content

Commit 93ca40a

Browse files
committed
chore: updated value type in environment list of build cd
1 parent 6d8e23a commit 93ca40a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/components/CIPipelineN/CIPipeline.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ import { LoadingState } from '../ciConfig/types'
8181
import { pipelineContext } from '../workflowEditor/workflowEditor'
8282
import { calculateLastStepDetailsLogic, checkUniqueness, validateTask } from '../cdPipeline/cdpipeline.util'
8383
import { PipelineContext, PipelineFormDataErrorType } from '../workflowEditor/types'
84+
import { EnvironmentWithSelectPickerType } from './types'
8485

8586
const processPluginData = importComponentFromFELibrary('processPluginData', null, 'function')
8687
const validatePlugins = importComponentFromFELibrary('validatePlugins', null, 'function')
@@ -130,8 +131,8 @@ export default function CIPipeline({
130131
postBuildStage: Map<string, VariableType>[]
131132
}>({ preBuildStage: [], postBuildStage: [] })
132133
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[]>([])
135136
const [formData, setFormData] = useState<PipelineFormType>({
136137
name: '',
137138
args: [],

src/components/app/details/triggerView/types.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ import {
4040
RuntimeParamsListItemType,
4141
KeyValueTableProps,
4242
CDMaterialSidebarType,
43-
Environment,
4443
} from '@devtron-labs/devtron-fe-common-lib'
4544
import React from 'react'
4645
import { EnvironmentWithSelectPickerType } from '@Components/CIPipelineN/types'
@@ -415,7 +414,7 @@ export interface TriggerViewState {
415414
isChangeBranchClicked: boolean
416415
loader: boolean
417416
isSaveLoading?: boolean
418-
selectedEnv?: Environment
417+
selectedEnv?: EnvironmentWithSelectPickerType
419418
environmentLists?: any[]
420419
appReleaseTags?: string[]
421420
tagsEditable?: boolean

0 commit comments

Comments
 (0)