mirror of
https://github.com/documenso/documenso.git
synced 2025-11-14 00:32:43 +10:00
🐛
This commit is contained in:
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user