From 29f13f5f4b8d0fa8b8dcb4ba3f604367ad281020 Mon Sep 17 00:00:00 2001 From: Anthony LC Date: Fri, 17 May 2024 22:32:44 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8(frontend)=20stop=20throwing=20erro?= =?UTF-8?q?rs=20on=20id=20pages?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We stopped throwing errors on id pages, often Next.js just need a rerender to get the id from the router correctly. --- src/frontend/apps/impress/src/pages/pads/[id].tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/apps/impress/src/pages/pads/[id].tsx b/src/frontend/apps/impress/src/pages/pads/[id].tsx index ccd86a88..ab251253 100644 --- a/src/frontend/apps/impress/src/pages/pads/[id].tsx +++ b/src/frontend/apps/impress/src/pages/pads/[id].tsx @@ -15,7 +15,7 @@ const Page: NextPageWithLayout = () => { } = useRouter(); if (typeof id !== 'string') { - throw new Error('Invalid pad id'); + return null; } return ;