mirror of
https://github.com/documenso/documenso.git
synced 2025-11-23 05:01:54 +10:00
⚡️ remove document data from serverside properties
This commit is contained in:
@ -122,7 +122,9 @@ export async function getServerSideProps(context: any) {
|
||||
return {
|
||||
props: {
|
||||
recipient: JSON.parse(JSON.stringify(recipient)),
|
||||
document: JSON.parse(JSON.stringify(recipient.Document)),
|
||||
document: JSON.parse(
|
||||
JSON.stringify({ ...recipient.Document, document: "" })
|
||||
),
|
||||
fields: JSON.parse(JSON.stringify(unsignedFields)),
|
||||
expired: recipient.expired
|
||||
? new Date(recipient.expired) < new Date()
|
||||
|
||||
Reference in New Issue
Block a user