Skip to content

Commit

Permalink
refactor: remove redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
eshankvaish committed Dec 2, 2024
1 parent 13b094e commit 92fe1dc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/app/details/appDetails/SourceInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export const SourceInfo = ({

const renderDevtronAppsEnvironmentSelector = (environment) => {
// If moving to a component then move getIsApprovalConfigured with it as well with memoization.
const isApprovalConfigured = getIsApprovalPolicyConfigured(appDetails?.userApprovalMetadata?.approvalConfigData)
const isApprovalConfigured = getIsApprovalPolicyConfigured(appDetails?.approvalConfigData)
const relativeSnapshotTime = appDetails?.resourceTree?.lastSnapshotTime
? handleUTCTime(appDetails.resourceTree.lastSnapshotTime, true)
: ''
Expand Down
4 changes: 2 additions & 2 deletions src/components/app/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import {
RuntimeParamsListItemType,
RuntimeParamsTriggerPayloadType,
HelmReleaseStatus,
UserApprovalMetadataType,
ApprovalConfigDataType,
} from '@devtron-labs/devtron-fe-common-lib'
import { DeploymentStatusDetailsBreakdownDataType, ErrorItem } from './details/appDetails/appDetails.type'
import { GroupFilterType } from '../ApplicationGroup/AppGroup.types'
Expand Down Expand Up @@ -103,7 +103,7 @@ export interface AppDetails extends CDModalProps {
appId: number
deploymentAppType?: DeploymentAppTypes
externalCi?: boolean
userApprovalMetadata?: UserApprovalMetadataType
approvalConfigData?: ApprovalConfigDataType
ciArtifactId?: number
parentArtifactId?: number
deprecated?: boolean
Expand Down
2 changes: 0 additions & 2 deletions src/components/cdPipeline/CDPipeline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,6 @@ export default function CDPipeline({
triggerType: TriggerType.Auto,
steps: [],
},
// Utilizing the null checks to get default value
// TODO: Remove
isClusterCdActive: false,
deploymentAppCreated: false,
clusterName: '',
Expand Down

0 comments on commit 92fe1dc

Please sign in to comment.