mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-12 00:15:50 -06:00
Fix null pointer in chart JS [skip ci]
This commit is contained in:
parent
dd6a6a565f
commit
93aa5b7753
@ -294,6 +294,7 @@ function drawAChart(URI, container, chartType, options, colorData) {
|
||||
lineAtIndex: [],
|
||||
annotation: {},
|
||||
};
|
||||
if (typeof drawVerticalLine !== 'undefined') {
|
||||
if (drawVerticalLine !== '') {
|
||||
// draw line using annotation plugin.
|
||||
console.log('Will draw line');
|
||||
@ -320,6 +321,7 @@ function drawAChart(URI, container, chartType, options, colorData) {
|
||||
}]
|
||||
};
|
||||
}
|
||||
}
|
||||
allCharts[container] = new Chart(ctx, chartOpts);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user