1 parent c4eac9e commit b5dfdd9Copy full SHA for b5dfdd9
1 file changed
static/js/dashboard.js
@@ -315,11 +315,13 @@ function dGroupDates(dates) {
315
// if it's still to big, use months. 16 is a magic number to swap to the per month view
316
if (Object.keys(groupedDates).length > 16) {
317
groupedDates = groupedByMonth;
318
+ // Use years if we are displaying more than 16 month.
319
+ if (Object.keys(groupedDates).length > 16) {
320
+ groupedDates = groupedByYear
321
+ }
322
}
323
324
- // groupedDates = groupedByYear;
-
325
return [Object.keys(groupedDates), Object.values(groupedDates)];
326
327
0 commit comments