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 2184d6c commit 7ab86e2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/components/CheckIn/TableRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,12 @@ export const TableRow = ({
}
inputs.push({ name: data.name.trim() });
const pdf = await generate({ template: tagTemplate, inputs });
// istanbul ignore next

// 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
window.open(url);
// istanbul ignore next
toast.success('PDF generated successfully!');
} catch (error: unknown) {
const errorMessage =
Expand Down

0 comments on commit 7ab86e2

Please sign in to comment.