BigW Consortium Gitlab

Commit 398be9ca by Regis

performance and diff updates

parent 0e44c09c
......@@ -7,7 +7,7 @@
this.pipelines = pipelines;
this.updateClone = (update, newPipe) => {
update.forEach((pipe) => {
if (pipe.id === newPipe.id) pipe = Object.assign(pipe, newPipe);
if (pipe.id === newPipe.id) pipe = Object.assign({}, pipe, newPipe);
});
};
}
......@@ -20,7 +20,7 @@
}
updatePipelines(apiResponse) {
const update = this.pipelines.map(e => e);
const update = this.pipelines.slice(0);
apiResponse.pipelines.forEach((newPipe) => {
if (newPipe.commit) {
update.unshift(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