Skip to content

Commit

Permalink
fix(plr-bars): Cancelled tasks for cancelled runs
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinandan13jan authored and root committed Jun 3, 2020
1 parent 499e2fc commit 59f1d42
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/packages/dev-console/src/utils/pipeline-augment.ts
Expand Up @@ -368,7 +368,8 @@ export const getTaskStatus = (pipelinerun: PipelineRun, pipeline: Pipeline): Tas
taskStatus[runStatus.Pending]++;
}
});
taskStatus[runStatus.Failed] > 0 || taskStatus[runStatus.Cancelled] > 0
taskStatus[runStatus.Failed] > 0 ||
pipelineRunFilterReducer(pipelinerun) === runStatus.Cancelled
? (taskStatus[runStatus.Cancelled] +=
totalTasks >= plrTaskLength ? totalTasks - plrTaskLength : totalTasks)
: (taskStatus[runStatus.Pending] +=
Expand Down

0 comments on commit 59f1d42

Please sign in to comment.