BigW Consortium Gitlab

Commit 4d45ef5d by Regis

refactor object merge-add

parent 8d5c1df7
...@@ -15,8 +15,7 @@ ...@@ -15,8 +15,7 @@
updatePipelines(apiResponse) { updatePipelines(apiResponse) {
const update = this.pipelines.map(e => e); const update = this.pipelines.map(e => e);
apiResponse.pipelines.forEach((newPipe) => { apiResponse.pipelines.forEach((newPipe) => {
if (Object.keys(newPipe).length <= 2) return; if (newPipe.commit) {
if (Object.keys(newPipe).length > 3) {
update.unshift(newPipe); update.unshift(newPipe);
} else { } else {
this.updateClone(update, newPipe); this.updateClone(update, newPipe);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment