mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-08-24 03:55:49 -05:00
remove error from x rank page creating
This commit is contained in:
@@ -49,7 +49,7 @@ export const getStaticPaths: GetStaticPaths = async () => {
|
||||
orderBy: [{ month: "desc" }, { year: "desc" }],
|
||||
});
|
||||
|
||||
if (!mostRecentResult) throw Error("No X Rank Placements");
|
||||
if (!mostRecentResult) return { paths: [], fallback: true };
|
||||
|
||||
return {
|
||||
paths: getMonthOptions(mostRecentResult.month, mostRecentResult.year)
|
||||
|
||||
Reference in New Issue
Block a user