Skip to content

Commit 1e4fdd0

Browse files
code review comments incorporated
1 parent 5cef765 commit 1e4fdd0

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

src/components/ApplicationGroup/AppGroup.service.ts

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -79,24 +79,24 @@ export const getWorkflows = (envID: string, appIds: string): Promise<WorkflowsRe
7979
for (const _ciConfig of ciConfig.result) {
8080
_ciConfigMap.set(_ciConfig.appId, _ciConfig)
8181
}
82-
if (workflow?.result?.workflows){
83-
for (const workflowResult of workflow.result.workflows) {
84-
const processWorkflowData = processWorkflow(
85-
{
86-
...workflowResult,
87-
workflows: [workflowResult],
88-
} as WorkflowResult,
89-
_ciConfigMap.get(workflowResult.appId),
90-
cdConfig.result as CdPipelineResult,
91-
externalCIConfig.result,
92-
WorkflowTrigger,
93-
WorkflowTrigger.workflow,
94-
filterChildAndSiblingCD(envID),
95-
)
96-
_workflows.push(...processWorkflowData.workflows)
97-
_filteredCIPipelines.set(workflowResult.appId, processWorkflowData.filteredCIPipelines)
82+
if (workflow?.result?.workflows) {
83+
for (const workflowResult of workflow.result.workflows) {
84+
const processWorkflowData = processWorkflow(
85+
{
86+
...workflowResult,
87+
workflows: [workflowResult],
88+
} as WorkflowResult,
89+
_ciConfigMap.get(workflowResult.appId),
90+
cdConfig.result as CdPipelineResult,
91+
externalCIConfig.result,
92+
WorkflowTrigger,
93+
WorkflowTrigger.workflow,
94+
filterChildAndSiblingCD(envID),
95+
)
96+
_workflows.push(...processWorkflowData.workflows)
97+
_filteredCIPipelines.set(workflowResult.appId, processWorkflowData.filteredCIPipelines)
98+
}
9899
}
99-
}
100100
return { workflows: _workflows, filteredCIPipelines: _filteredCIPipelines }
101101
})
102102
}

0 commit comments

Comments
 (0)