🚨(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:
@@ -15,7 +15,7 @@ const Page: NextPageWithLayout = () => {
|
|||||||
} = useRouter();
|
} = useRouter();
|
||||||
|
|
||||||
if (typeof id !== 'string') {
|
if (typeof id !== 'string') {
|
||||||
throw new Error('Invalid pad id');
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
return <Pad id={id} />;
|
return <Pad id={id} />;
|
||||||
|
|||||||
Reference in New Issue
Block a user