Skip to content

Commit a9b1eed

Browse files
committed
Fix BlobPart type assertion
1 parent 563e034 commit a9b1eed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/cleaners/pdf.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export async function cleanPdf(file: File, enabledFields?: PdfFieldConfig): Prom
6666
}
6767

6868
const cleanedBytes = await pdfDoc.save();
69-
const cleanedBlob = new Blob([cleanedBytes.buffer], { type: 'application/pdf' });
69+
const cleanedBlob = new Blob([cleanedBytes as BlobPart], { type: 'application/pdf' });
7070

7171
return {
7272
originalName: file.name,

0 commit comments

Comments
 (0)