Skip to content

🔥 The free & Open Source DocuSign alternative

fix: can not access template before initialization

RaktimaNXG1d6c108ba4ba
diff --git a/apps/OpenSignServer/cloud/customRoute/v1/routes/CreateDocumentWithTemplate.js b/apps/OpenSignServer/cloud/customRoute/v1/routes/CreateDocumentWithTemplate.js
index ae816fce6..630fe1090 100644
--- a/apps/OpenSignServer/cloud/customRoute/v1/routes/CreateDocumentWithTemplate.js
+++ b/apps/OpenSignServer/cloud/customRoute/v1/routes/CreateDocumentWithTemplate.js
@@ -102,7 +102,6 @@ export default async function createDocumentWithTemplate(request, response) {
className: 'contracts_Document',
objectId: folderId,
};
- const template = JSON.parse(JSON.stringify(templateRes));
const object = new Parse.Object('contracts_Document');
object.set('Name', template.Name);
if (template?.Note) {