fix wrong case

This commit is contained in:
Neil Lalonde 2018-03-27 13:53:47 -04:00
parent 4d12ff2e8a
commit df345d80f9
1 changed files with 2 additions and 2 deletions

View File

@ -137,11 +137,11 @@ const Report = Discourse.Model.extend({
@computed('data')
sortedData(data) {
return this.get('xaxisIsDate') ? data.toArray().reverse() : data.toArray();
return this.get('xAxisIsDate') ? data.toArray().reverse() : data.toArray();
},
@computed('data')
xaxisIsDate() {
xAxisIsDate() {
if (!this.data[0]) return false;
return this.data && moment(this.data[0].x, 'YYYY-MM-DD').isValid();
}