🚨(frontend) stop throwing errors on id pages

We stopped throwing errors on id pages, often
Next.js just need a rerender to get the id
from the router correctly.
This commit is contained in:
Anthony LC
2024-05-17 22:32:44 +02:00
committed by Anthony LC
parent 515b686795
commit 29f13f5f4b

View File

@@ -15,7 +15,7 @@ const Page: NextPageWithLayout = () => {
} = useRouter();
if (typeof id !== 'string') {
throw new Error('Invalid pad id');
return null;
}
return <Pad id={id} />;