mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 18:24:52 -06:00
fix wrong case
This commit is contained in:
parent
4d12ff2e8a
commit
df345d80f9
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user