Fix manage page bug

This commit is contained in:
Folyd 2022-11-10 23:38:27 +08:00
parent d2b14291e4
commit 3a672d0843

View file

@ -28,7 +28,7 @@ const STATS_PATTERNS = [{
},
{
name: 'other',
pattern: /^[>%?]|(1\.).*/i,
pattern: /^[>%?]|(v?1\.).*/i,
},
];
const WEEKS = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
@ -75,7 +75,7 @@ class Statistics {
self.typeData = stats.typeData;
self.hoursData = stats.hoursData;
self.total = stats.total;
self.saveData = stats.saveData;
self.saveData = stats.saveData || [];
}
return self;
}