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.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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user