Skip to content

Commit 7f1ed8a

Browse files
committed
fix: check for userApprovalMetadata
1 parent 66f4af0 commit 7f1ed8a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Shared/Components/CICDHistory/DeploymentDetailSteps.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import { ReactComponent as Arrow } from '../../../Assets/Icon/ic-arrow-forward.s
2929
import mechanicalOperation from '../../../Assets/Icon/ic-mechanical-operation.svg'
3030
import CDEmptyState from './CDEmptyState'
3131
import DeploymentStatusDetailBreakdown from './DeploymentStatusBreakdown'
32-
import { processDeploymentStatusDetailsData } from '../../Helpers'
32+
import { getIsApprovalPolicyConfigured, processDeploymentStatusDetailsData } from '../../Helpers'
3333

3434
let deploymentStatusTimer = null
3535
const DeploymentDetailSteps = ({
@@ -150,7 +150,7 @@ const DeploymentDetailSteps = ({
150150
) : (
151151
<div className="dc__mxw-1000 min-w-800">
152152
{renderDeploymentApprovalInfo &&
153-
userApprovalMetadata &&
153+
getIsApprovalPolicyConfigured(userApprovalMetadata?.approvalConfigData) &&
154154
renderDeploymentApprovalInfo(userApprovalMetadata)}
155155
<DeploymentStatusDetailBreakdown
156156
deploymentStatusDetailsBreakdownData={deploymentStatusDetailsBreakdownData}

0 commit comments

Comments
 (0)