mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-02 02:18:20 +00:00
Fix null pointer in chart JS [skip ci]
This commit is contained in:
2
public/js/ff/charts.js
vendored
2
public/js/ff/charts.js
vendored
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user