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.res
);
// todo optimize querys
// todo no intersection groups
return {
props: {
document: document,
},
};
} catch (error) {
if (!document) {
return {
notFound: true,
};
}
return {
notFound: true,
};
}
// todo optimize querys
// todo no intersection groups
return {
props: {
document: document,
},
};
}
DocumentsDetailPage.getLayout = function getLayout(page: ReactElement) {