mirror of
https://github.com/certd/certd.git
synced 2026-04-24 04:17:25 +08:00
fix: 修复流水线列表页报length错误的bug
This commit is contained in:
@@ -128,13 +128,15 @@ export class PipelineService extends BaseService<PipelineEntity> {
|
|||||||
}
|
}
|
||||||
const pipeline = JSON.parse(item.content);
|
const pipeline = JSON.parse(item.content);
|
||||||
let stepCount = 0;
|
let stepCount = 0;
|
||||||
RunnableCollection.each(pipeline.stages, (runnable: any) => {
|
if(pipeline.stages){
|
||||||
stepCount++;
|
RunnableCollection.each(pipeline.stages, (runnable: any) => {
|
||||||
});
|
stepCount++;
|
||||||
|
});
|
||||||
|
}
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
item.stepCount = stepCount;
|
item.stepCount = stepCount;
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
item.triggerCount = pipeline.triggers.length;
|
item.triggerCount = pipeline.triggers?.length;
|
||||||
delete item.content;
|
delete item.content;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user