fix: trim out of bound contents when pdf is replaced

This commit is contained in:
David Nguyen
2026-10-01 17:02:12 +10:00
parent 656d1347b9
commit f38c151b1b
16 changed files with 147 additions and 27 deletions
+1 -1
View File
@@ -818,7 +818,7 @@ export const ApiContractV1Implementation = tsr.router(ApiContractV1, {
formValues: body.formValues,
});
const newDocumentData = await putNormalizedPdfFileServerSide({
const { documentData: newDocumentData } = await putNormalizedPdfFileServerSide({
name: fileName,
type: 'application/pdf',
arrayBuffer: async () => Promise.resolve(prefilled),