mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 11:02:46 +08:00
fix web crawler stats sorted in reverse
This commit is contained in:
parent
df345d80f9
commit
3fab5267be
|
@ -143,7 +143,7 @@ const Report = Discourse.Model.extend({
|
|||
@computed('data')
|
||||
xAxisIsDate() {
|
||||
if (!this.data[0]) return false;
|
||||
return this.data && moment(this.data[0].x, 'YYYY-MM-DD').isValid();
|
||||
return this.data && this.data[0].x.match(/\d{4}-\d{1,2}-\d{1,2}/);
|
||||
}
|
||||
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user