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

View File

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