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:
parent
4fb95fcb4f
commit
579c192d89
@ -253,7 +253,7 @@ const Charts = (() => {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
c.jobCompleted = success => {
|
c.jobCompleted = success => {
|
||||||
c.data.datasets[success ? 0 : 1].data[6]++;
|
c.data.datasets[success ? 1 : 0].data[6]++;
|
||||||
c.update();
|
c.update();
|
||||||
}
|
}
|
||||||
return c;
|
return c;
|
||||||
|
Loading…
Reference in New Issue
Block a user