Skip to content

Commit

Permalink
PalisadoesFoundation#2970:autodoc-generate
Browse files Browse the repository at this point in the history
  • Loading branch information
bint-Eve committed Jan 5, 2025
1 parent 69ff3e1 commit 2184d6c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/CheckIn/TableRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ export const TableRow = ({
inputs.push({ name: data.name.trim() });
const pdf = await generate({ template: tagTemplate, inputs });
// istanbul ignore next
const blob = new Blob([pdf.buffer], { type: 'application/pdf' });
// Convert ArrayBuffer to Uint8Array before creating Blob
const uint8Array = new Uint8Array(pdf.buffer);
const blob = new Blob([uint8Array], { type: 'application/pdf' });
// istanbul ignore next
const url = URL.createObjectURL(blob);
// istanbul ignore next
Expand Down

0 comments on commit 2184d6c

Please sign in to comment.