1
0
mirror of https://github.com/ohwgiles/laminar.git synced 2024-10-27 20:34:20 +00:00

builds per day: fix dynamic update to wrong result

the wrong dataset was updated, causing the graph to increase
the number of failed builds when a build succeeded and vice-versa.
This commit is contained in:
Oliver Giles 2020-11-13 14:00:59 +13:00
parent 4fb95fcb4f
commit 579c192d89

View File

@ -253,7 +253,7 @@ const Charts = (() => {
}
});
c.jobCompleted = success => {
c.data.datasets[success ? 0 : 1].data[6]++;
c.data.datasets[success ? 1 : 0].data[6]++;
c.update();
}
return c;