This commit is contained in:
Timur Ercan
2023-02-14 11:17:08 +01:00
parent 3d9bf1fb67
commit 3bca832720

View File

@ -120,22 +120,20 @@ export async function getServerSideProps(context: any) {
context.req, context.req,
context.res context.res
); );
// todo optimize querys
// todo no intersection groups
return {
props: {
document: document,
},
};
} catch (error) { } catch (error) {
if (!document) { return {
return { notFound: true,
notFound: true, };
};
}
} }
// todo optimize querys
// todo no intersection groups
return {
props: {
document: document,
},
};
} }
DocumentsDetailPage.getLayout = function getLayout(page: ReactElement) { DocumentsDetailPage.getLayout = function getLayout(page: ReactElement) {