From dae582eedc29466d615ea8f1420e2cdccd0f8adb Mon Sep 17 00:00:00 2001 From: MillenniumEarl Date: Wed, 3 Mar 2021 21:16:48 +0100 Subject: [PATCH] Fallback if category is mods --- src/scripts/classes/query/latest-search-query.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/scripts/classes/query/latest-search-query.ts b/src/scripts/classes/query/latest-search-query.ts index 615137a..afeb42d 100644 --- a/src/scripts/classes/query/latest-search-query.ts +++ b/src/scripts/classes/query/latest-search-query.ts @@ -71,7 +71,8 @@ export default class LatestSearchQuery implements IQuery { url.searchParams.set("cmd", "list"); // Set the category - url.searchParams.set("cat", this.category); + const cat: TCategory = this.category === "mods" ? "games" : this.category; + url.searchParams.set("cat", cat); // Add tags and prefixes const parser = new PrefixParser();