From 7ab86e2c8091900e71935f98f64b2e964f4644b2 Mon Sep 17 00:00:00 2001 From: Rukh-Khan Date: Sun, 5 Jan 2025 17:40:36 +0530 Subject: [PATCH] #2970:autodoc-generate --- src/components/CheckIn/TableRow.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/components/CheckIn/TableRow.tsx b/src/components/CheckIn/TableRow.tsx index b273dbdd84..6c0e6a4ff3 100644 --- a/src/components/CheckIn/TableRow.tsx +++ b/src/components/CheckIn/TableRow.tsx @@ -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 =