mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fix charts in IE
since IE apparently doesn't support arrow function expression (and throws a syntax error)
This commit is contained in:
parent
f9fc9b1889
commit
495158b9c9
4
public/js/ff/charts.js
vendored
4
public/js/ff/charts.js
vendored
@ -88,7 +88,9 @@ const verticalLinePlugin = {
|
|||||||
|
|
||||||
afterDatasetsDraw: function (chart, easing) {
|
afterDatasetsDraw: function (chart, easing) {
|
||||||
if (chart.config.lineAtIndex) {
|
if (chart.config.lineAtIndex) {
|
||||||
chart.config.lineAtIndex.forEach(pointIndex => this.renderVerticalLine(chart, pointIndex));
|
chart.config.lineAtIndex.forEach(function(pointIndex) {
|
||||||
|
this.renderVerticalLine(chart, pointIndex);
|
||||||
|
}, this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user