mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-02 10:22:09 +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: [],
|
lineAtIndex: [],
|
||||||
annotation: {},
|
annotation: {},
|
||||||
};
|
};
|
||||||
|
if (typeof drawVerticalLine !== 'undefined') {
|
||||||
if (drawVerticalLine !== '') {
|
if (drawVerticalLine !== '') {
|
||||||
// draw line using annotation plugin.
|
// draw line using annotation plugin.
|
||||||
console.log('Will draw line');
|
console.log('Will draw line');
|
||||||
@@ -320,6 +321,7 @@ function drawAChart(URI, container, chartType, options, colorData) {
|
|||||||
}]
|
}]
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
}
|
||||||
allCharts[container] = new Chart(ctx, chartOpts);
|
allCharts[container] = new Chart(ctx, chartOpts);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user