documents detail page 404 handling

This commit is contained in:
Timur Ercan
2023-02-13 13:09:57 +01:00
parent 42883f9dd8
commit ac60ea1f5f
2 changed files with 7 additions and 1 deletions

View File

@ -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,