Skip to content

Commit 65319c0

Browse files
committed
build fix
1 parent a9f4d41 commit 65319c0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/frontend/src/apis/finance.api.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,10 +293,10 @@ export const downloadBlobsToPdf = async (blobData: Blob[], filename: string) =>
293293
await Promise.all(promises);
294294

295295
// Save the PDF as an ArrayBuffer
296-
const pdfBytes = await pdfDoc.save();
296+
const pdfBytes: Uint8Array = await pdfDoc.save();
297297

298298
// Convert the ArrayBuffer to a Blob
299-
const pdfBlob = new Blob([pdfBytes], { type: 'application/pdf' });
299+
const pdfBlob = new Blob([pdfBytes.buffer as ArrayBuffer], { type: 'application/pdf' });
300300

301301
// Save the Blob as a file using file-saver
302302
saveAs(pdfBlob, filename);

0 commit comments

Comments
 (0)