mirror of
https://github.com/documenso/documenso.git
synced 2025-11-14 00:32:43 +10:00
⚡️ remove document data from serverside properties
This commit is contained in:
@ -125,7 +125,7 @@ export async function getServerSideProps(context: any) {
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
props: {
|
props: {
|
||||||
document: JSON.parse(JSON.stringify(document)),
|
document: JSON.parse(JSON.stringify({ ...document, document: "" })),
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
@ -461,7 +461,7 @@ export async function getServerSideProps(context: any) {
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
props: {
|
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 {
|
return {
|
||||||
props: {
|
props: {
|
||||||
recipient: JSON.parse(JSON.stringify(recipient)),
|
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)),
|
fields: JSON.parse(JSON.stringify(unsignedFields)),
|
||||||
expired: recipient.expired
|
expired: recipient.expired
|
||||||
? new Date(recipient.expired) < new Date()
|
? new Date(recipient.expired) < new Date()
|
||||||
|
|||||||
Reference in New Issue
Block a user