File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
src/Shared/Components/DeploymentStatusBreakdown Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -130,10 +130,16 @@ const processKubeCTLApply = (
130
130
currentTableData : [ { icon : 'success' , message : 'Started by Argo CD' } ] ,
131
131
}
132
132
133
- if ( element . resourceDetails ) {
133
+ // Resource details are present in KUBECTL_APPLY_STARTED timeline alone
134
+ const resourceDetails = data ?. timelines ?. find (
135
+ ( item ) => item . status === TIMELINE_STATUS . KUBECTL_APPLY_STARTED ,
136
+ ) ?. resourceDetails
137
+
138
+ if ( resourceDetails ) {
139
+ // TODO: Confirm this logic since, can have duplication
134
140
// Used to parse resource details base struct with current phase as last phase
135
141
DEPLOYMENT_PHASES . forEach ( ( phase ) => {
136
- element . resourceDetails . forEach ( ( item ) => {
142
+ resourceDetails . forEach ( ( item ) => {
137
143
if ( phase === item . resourcePhase ) {
138
144
tableData . currentPhase = phase
139
145
tableData . currentTableData . push ( {
You can’t perform that action at this time.
0 commit comments