documents detail page 404 handling
This commit is contained in:
@@ -131,6 +131,12 @@ export async function getServerSideProps(context: any) {
|
||||
// todo optimize querys
|
||||
// todo no intersection groups
|
||||
|
||||
if (!document) {
|
||||
return {
|
||||
notFound: true,
|
||||
};
|
||||
}
|
||||
|
||||
return {
|
||||
props: {
|
||||
document: document,
|
||||
|
||||
Reference in New Issue
Block a user