Skip to content
Snippets Groups Projects
Commit 4d45ef5d authored by Regis Boudinot's avatar Regis Boudinot :rocket:
Browse files

refactor object merge-add

parent 8d5c1df7
No related branches found
No related tags found
Loading
Pipeline #
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment