From 9a7e5d333dbabeeeb50a32b361b0f667328ce97a Mon Sep 17 00:00:00 2001 From: Lucas Smith Date: Thu, 7 Dec 2023 15:45:44 +1100 Subject: [PATCH] fix: don't expand documentData --- .../src/app/(dashboard)/documents/data-table-action-button.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/app/(dashboard)/documents/data-table-action-button.tsx b/apps/web/src/app/(dashboard)/documents/data-table-action-button.tsx index e0a56f83d..3fc9e2d42 100644 --- a/apps/web/src/app/(dashboard)/documents/data-table-action-button.tsx +++ b/apps/web/src/app/(dashboard)/documents/data-table-action-button.tsx @@ -58,7 +58,7 @@ export const DataTableActionButton = ({ row }: DataTableActionButtonProps) => { return; } - const documentBytes = await getFile({ data: documentData.data, type: documentData.type }); + const documentBytes = await getFile(documentData); const blob = new Blob([documentBytes], { type: 'application/pdf',