Skip to content

Commit

Permalink
New Pipeline without pipeline info (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
NagendraOpsmx authored Mar 30, 2023
1 parent dea25ff commit 6e8ecbd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export class PipelineConfigService {
if (results['services']?.length > 0) {
const index = results['services'].map((i: { serviceName: any }) => i.serviceName).indexOf(pipelineName);
const pipelines = results.services[index]?.pipelines;
const pipelineIndex = pipelines.findIndex((pipeline: any) => pipeline.pipelineName == pipelineName);
const pipelineIndex = pipelines && pipelines.findIndex((pipeline: any) => pipeline.pipelineName == pipelineName);

if (Array.isArray(pipeline.stages)) {
pipeline.stages.forEach((stage: any) => {
Expand Down

0 comments on commit 6e8ecbd

Please sign in to comment.