提交 bd0e6936 编写于 作者: R Regis

take care of per page amount of pipelines [ci skip]

上级 f2893b77
......@@ -12,6 +12,13 @@
};
}
currentPageSlicer(update) {
const length = update.length;
if (this.pipelines.length === update.length) return update;
if (update.length <= 30) return update;
return update.slice(0, (length - 1));
}
updatePipelines(apiResponse) {
const update = this.pipelines.map(e => e);
apiResponse.pipelines.forEach((newPipe) => {
......@@ -21,8 +28,7 @@
this.updateClone(update, newPipe);
}
});
this.pipelines = update;
return this.pipelines;
return this.currentPageSlicer(update);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册