From 0689cc2c4176ec29607f649f09f35ea6b6090823 Mon Sep 17 00:00:00 2001 From: "Kalle (Sendou)" <38327916+Sendouc@users.noreply.github.com> Date: Wed, 18 Nov 2020 15:57:36 +0200 Subject: [PATCH] remove error from x rank page creating --- pages/top500/[[...slug]].tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/top500/[[...slug]].tsx b/pages/top500/[[...slug]].tsx index 4935876a7..2d98b24ad 100644 --- a/pages/top500/[[...slug]].tsx +++ b/pages/top500/[[...slug]].tsx @@ -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)