mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 16:23:06 +10:00
⚡️ remove document data from serverside properties
This commit is contained in:
@ -125,7 +125,7 @@ export async function getServerSideProps(context: any) {
|
||||
|
||||
return {
|
||||
props: {
|
||||
document: JSON.parse(JSON.stringify(document)),
|
||||
document: JSON.parse(JSON.stringify({ ...document, document: "" })),
|
||||
},
|
||||
};
|
||||
} catch (error) {
|
||||
|
||||
@ -461,7 +461,7 @@ export async function getServerSideProps(context: any) {
|
||||
|
||||
return {
|
||||
props: {
|
||||
document: JSON.parse(JSON.stringify(document)),
|
||||
document: JSON.parse(JSON.stringify({ ...document, document: "" })),
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
@ -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