summaryrefslogtreecommitdiffstats
path: root/ui/src/utils.ts
diff options
context:
space:
mode:
Diffstat (limited to 'ui/src/utils.ts')
-rw-r--r--ui/src/utils.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/src/utils.ts b/ui/src/utils.ts
index ce221e32..867ff91e 100644
--- a/ui/src/utils.ts
+++ b/ui/src/utils.ts
@@ -166,6 +166,8 @@ export function routeSortTypeToEnum(sort: string): SortType {
return SortType.TopWeek;
} else if (sort == 'topmonth') {
return SortType.TopMonth;
+ } else if (sort == 'topyear') {
+ return SortType.TopYear;
} else if (sort == 'topall') {
return SortType.TopAll;
}