File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
src/components/app/details/appDetails Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -504,6 +504,11 @@ export const processDeploymentStatusDetailsData = (
504
504
505
505
// data when timelines is available
506
506
if ( data ?. timelines ?. length ) {
507
+ // TO Support legacy data have to make sure that if ARGOCD_SYNC is not available then we fill it with dummy values
508
+ const isArgoCDAvailable = data . timelines . some ( ( timeline ) =>
509
+ timeline [ 'status' ] . includes ( TIMELINE_STATUS . ARGOCD_SYNC ) ,
510
+ )
511
+
507
512
for ( let index = data . timelines . length - 1 ; index >= 0 ; index -- ) {
508
513
const element = data . timelines [ index ]
509
514
if ( element [ 'status' ] === TIMELINE_STATUS . HEALTHY || element [ 'status' ] === TIMELINE_STATUS . DEGRADED ) {
@@ -607,10 +612,6 @@ export const processDeploymentStatusDetailsData = (
607
612
} )
608
613
}
609
614
610
- // TO Support legacy data have to make sure that if ARGOCD_SYNC is not available then we fill it with dummy values
611
- const isArgoCDAvailable = data ?. timelines ?. some ( ( timeline ) =>
612
- timeline [ 'status' ] . includes ( TIMELINE_STATUS . ARGOCD_SYNC ) ,
613
- )
614
615
if ( ! isArgoCDAvailable ) {
615
616
deploymentData . deploymentStatusBreakdown . ARGOCD_SYNC . icon = 'success'
616
617
deploymentData . deploymentStatusBreakdown . ARGOCD_SYNC . displaySubText = ''
You can’t perform that action at this time.
0 commit comments