fix web crawler stats sorted in reverse

This commit is contained in:
Neil Lalonde 2018-03-27 14:10:39 -04:00
parent df345d80f9
commit 3fab5267be
1 changed files with 1 additions and 1 deletions

View File

@ -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}/);
}
});