0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Fix tests

This commit is contained in:
Peter Zimon 2021-02-23 14:33:49 +01:00
parent 90fa9de9f2
commit 564e5c2a85

View file

@ -128,9 +128,7 @@ export default Component.extend({
setChartData({dateLabels, dateValues, label = 'Total Members'}) { setChartData({dateLabels, dateValues, label = 'Total Members'}) {
let backgroundColors = this.lineColor; let backgroundColors = this.lineColor;
if (this.chartType === 'open-rate') { if (this.chartType === 'open-rate') {
console.log(dateLabels);
backgroundColors = dateLabels.map((val) => { backgroundColors = dateLabels.map((val) => {
if (val) { if (val) {
return this.lineColor; return this.lineColor;