Skip to content

Commit

Permalink
chore: updated value type in environment list of build cd
Browse files Browse the repository at this point in the history
  • Loading branch information
shivani170 committed Oct 4, 2024
1 parent 6d8e23a commit 93ca40a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/components/CIPipelineN/CIPipeline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ import { LoadingState } from '../ciConfig/types'
import { pipelineContext } from '../workflowEditor/workflowEditor'
import { calculateLastStepDetailsLogic, checkUniqueness, validateTask } from '../cdPipeline/cdpipeline.util'
import { PipelineContext, PipelineFormDataErrorType } from '../workflowEditor/types'
import { EnvironmentWithSelectPickerType } from './types'

const processPluginData = importComponentFromFELibrary('processPluginData', null, 'function')
const validatePlugins = importComponentFromFELibrary('validatePlugins', null, 'function')
Expand Down Expand Up @@ -130,8 +131,8 @@ export default function CIPipeline({
postBuildStage: Map<string, VariableType>[]
}>({ preBuildStage: [], postBuildStage: [] })
const [isSecurityModuleInstalled, setSecurityModuleInstalled] = useState<boolean>(false)
const [selectedEnv, setSelectedEnv] = useState<Environment>()
const [environments, setEnvironments] = useState<Environment[]>([])
const [selectedEnv, setSelectedEnv] = useState<EnvironmentWithSelectPickerType>()
const [environments, setEnvironments] = useState<EnvironmentWithSelectPickerType[]>([])
const [formData, setFormData] = useState<PipelineFormType>({
name: '',
args: [],
Expand Down
3 changes: 1 addition & 2 deletions src/components/app/details/triggerView/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ import {
RuntimeParamsListItemType,
KeyValueTableProps,
CDMaterialSidebarType,
Environment,
} from '@devtron-labs/devtron-fe-common-lib'
import React from 'react'
import { EnvironmentWithSelectPickerType } from '@Components/CIPipelineN/types'
Expand Down Expand Up @@ -415,7 +414,7 @@ export interface TriggerViewState {
isChangeBranchClicked: boolean
loader: boolean
isSaveLoading?: boolean
selectedEnv?: Environment
selectedEnv?: EnvironmentWithSelectPickerType
environmentLists?: any[]
appReleaseTags?: string[]
tagsEditable?: boolean
Expand Down

0 comments on commit 93ca40a

Please sign in to comment.