️ remove document data from serverside properties

This commit is contained in:
Timur Ercan
2023-02-24 17:04:37 +01:00
parent b1519e147a
commit 3a3785de5b
3 changed files with 5 additions and 3 deletions

View File

@ -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) {

View File

@ -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: "" })),
},
};
}

View File

@ -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()