@@ -295,7 +295,6 @@ export const Details: React.FC<DetailsType> = ({
295
295
const appDetailsAbortRef = useRef ( null )
296
296
const shouldFetchTimelineRef = useRef ( false )
297
297
298
- const isAirGappedIsolatedEnv = isVirtualEnvRef . current && appDetails ?. resourceTree
299
298
300
299
const [ deploymentStatusDetailsBreakdownData , setDeploymentStatusDetailsBreakdownData ] =
301
300
useState < DeploymentStatusDetailsBreakdownDataType > ( {
@@ -427,7 +426,10 @@ export const Details: React.FC<DetailsType> = ({
427
426
}
428
427
IndexStore . publishAppDetails ( appDetailsRef . current , AppType . DEVTRON_APP )
429
428
setAppDetails ( appDetailsRef . current )
430
- _getDeploymentStatusDetail ( appDetailsRef . current . deploymentAppType )
429
+ _getDeploymentStatusDetail (
430
+ appDetailsRef . current . deploymentAppType ,
431
+ isVirtualEnvRef . current && appDetailsRef . current . resourceTree ,
432
+ )
431
433
432
434
if ( fetchExternalLinks && response . result ?. clusterId ) {
433
435
getExternalLinksAndTools ( response . result . clusterId )
@@ -472,7 +474,7 @@ export const Details: React.FC<DetailsType> = ({
472
474
} )
473
475
}
474
476
475
- function _getDeploymentStatusDetail ( deploymentAppType : DeploymentAppTypes ) {
477
+ function _getDeploymentStatusDetail ( deploymentAppType : DeploymentAppTypes , isAirGappedIsolatedEnv : boolean ) {
476
478
const shouldFetchTimeline = shouldFetchTimelineRef . current
477
479
478
480
getDeploymentStatusDetail ( params . appId , params . envId , shouldFetchTimeline )
@@ -490,10 +492,9 @@ export const Details: React.FC<DetailsType> = ({
490
492
deploymentTriggerTime : deploymentStatusDetailRes . result . deploymentStartedOn ,
491
493
deploymentEndTime : deploymentStatusDetailRes . result . deploymentFinishedOn ,
492
494
triggeredBy : deploymentStatusDetailRes . result . triggeredBy ,
493
- statusLastFetchedAt : deploymentStatusDetailRes . result . statusLastFetchedAt ? handleUTCTime (
494
- deploymentStatusDetailRes . result . statusLastFetchedAt ,
495
- true ,
496
- ) : '' ,
495
+ statusLastFetchedAt : deploymentStatusDetailRes . result . statusLastFetchedAt
496
+ ? handleUTCTime ( deploymentStatusDetailRes . result . statusLastFetchedAt , true )
497
+ : '' ,
497
498
} )
498
499
} else {
499
500
processDeploymentStatusData ( deploymentStatusDetailRes . result )
@@ -740,7 +741,6 @@ export const Details: React.FC<DetailsType> = ({
740
741
ciArtifactId = { appDetails ?. ciArtifactId }
741
742
setErrorsList = { setErrorsList }
742
743
deploymentUserActionState = { deploymentUserActionState }
743
- isAirGappedIsolatedEnv = { isAirGappedIsolatedEnv }
744
744
/>
745
745
</ div >
746
746
{ ! loadingDetails && ! loadingResourceTree && ! appDetails ?. deploymentAppDeleteRequest && (
0 commit comments