mirror of
https://github.com/documenso/documenso.git
synced 2026-06-22 04:12:06 +10:00
fix: dont flatten forms for templates (#2386)
Templates shouldn't have their form flattened until they're converted to a document.
This commit is contained in:
@@ -185,7 +185,9 @@ export const createEnvelope = async ({
|
||||
|
||||
const buffer = await getFileServerSide(documentData);
|
||||
|
||||
const normalizedPdf = await makeNormalizedPdf(Buffer.from(buffer));
|
||||
const normalizedPdf = await makeNormalizedPdf(Buffer.from(buffer), {
|
||||
flattenForm: type !== EnvelopeType.TEMPLATE,
|
||||
});
|
||||
|
||||
const titleToUse = item.title || title;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user