Skip to content

Commit 1275b56

Browse files
committed
feat: updated condition
1 parent 28e81f4 commit 1275b56

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,10 @@ const AppDetailsComponent = ({
152152
return <VirtualAppDetailsEmptyState environmentName={appDetails.environmentName} />
153153
}
154154
if (
155-
!appDetails?.resourceTree?.nodes?.length &&
156-
appDetails?.deploymentAppType === DeploymentAppTypes.HELM &&
157-
appDetails?.helmReleaseStatus &&
155+
appDetails &&
156+
!appDetails.resourceTree?.nodes?.length &&
157+
appDetails.deploymentAppType === DeploymentAppTypes.HELM &&
158+
appDetails.helmReleaseStatus &&
158159
appDetails.helmReleaseStatus.status &&
159160
(appDetails.helmReleaseStatus.status.toLowerCase() === DEPLOYMENT_STATUS.FAILED ||
160161
appDetails.helmReleaseStatus.status.toLowerCase() === DEPLOYMENT_STATUS.PROGRESSING ||
@@ -164,7 +165,7 @@ const AppDetailsComponent = ({
164165
<ReleaseStatusEmptyState
165166
message={appDetails.helmReleaseStatus.message}
166167
description={
167-
appDetails?.helmReleaseStatus.status?.toLowerCase() === DEPLOYMENT_STATUS.UNKNOWN
168+
appDetails.helmReleaseStatus.status.toLowerCase() === DEPLOYMENT_STATUS.UNKNOWN
168169
? ''
169170
: appDetails.helmReleaseStatus.description
170171
}

0 commit comments

Comments
 (0)