mirror of
https://github.com/ohwgiles/laminar.git
synced 2026-03-02 03:40:21 +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:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user