Skip to content

Commit 28e81f4

Browse files
committed
refactored: conditions
1 parent 251e356 commit 28e81f4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/components/v2/appDetails/AppDetails.component.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,10 @@ const AppDetailsComponent = ({
155155
!appDetails?.resourceTree?.nodes?.length &&
156156
appDetails?.deploymentAppType === DeploymentAppTypes.HELM &&
157157
appDetails?.helmReleaseStatus &&
158-
(appDetails?.helmReleaseStatus.status?.toLowerCase() === DEPLOYMENT_STATUS.FAILED ||
159-
appDetails?.helmReleaseStatus.status?.toLowerCase() === DEPLOYMENT_STATUS.PROGRESSING ||
160-
appDetails?.helmReleaseStatus.status?.toLowerCase() === DEPLOYMENT_STATUS.UNKNOWN)
158+
appDetails.helmReleaseStatus.status &&
159+
(appDetails.helmReleaseStatus.status.toLowerCase() === DEPLOYMENT_STATUS.FAILED ||
160+
appDetails.helmReleaseStatus.status.toLowerCase() === DEPLOYMENT_STATUS.PROGRESSING ||
161+
appDetails.helmReleaseStatus.status.toLowerCase() === DEPLOYMENT_STATUS.UNKNOWN)
161162
) {
162163
return (
163164
<ReleaseStatusEmptyState

0 commit comments

Comments
 (0)