BigW Consortium Gitlab

Commit 4d45ef5d by Regis

refactor object merge-add

parent 8d5c1df7
......@@ -15,8 +15,7 @@
updatePipelines(apiResponse) {
const update = this.pipelines.map(e => e);
apiResponse.pipelines.forEach((newPipe) => {
if (Object.keys(newPipe).length <= 2) return;
if (Object.keys(newPipe).length > 3) {
if (newPipe.commit) {
update.unshift(newPipe);
} else {
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