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