From 49711183b4e5f2ffd1708e6b2e83ecdff0eef7fc Mon Sep 17 00:00:00 2001 From: Carl Smith Date: Wed, 24 Jan 2024 15:02:34 +0000 Subject: [PATCH] update lg download all stage compnnent --- .../lloydGeorgeDownloadAllStage/LloydGeorgeDownloadAllStage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/components/blocks/lloydGeorgeDownloadAllStage/LloydGeorgeDownloadAllStage.tsx b/app/src/components/blocks/lloydGeorgeDownloadAllStage/LloydGeorgeDownloadAllStage.tsx index f8e88caa3..305fbf488 100644 --- a/app/src/components/blocks/lloydGeorgeDownloadAllStage/LloydGeorgeDownloadAllStage.tsx +++ b/app/src/components/blocks/lloydGeorgeDownloadAllStage/LloydGeorgeDownloadAllStage.tsx @@ -94,7 +94,6 @@ function LloydGeorgeDownloadAllStage({ }); const filename = `patient-record-${nhsNumber}`; - setLinkAttributes({ url: preSignedUrl, filename: filename }); if (deleteAfterDownload) { try { await deleteAllDocuments({ @@ -105,6 +104,7 @@ function LloydGeorgeDownloadAllStage({ }); } catch (e) {} // This is fail and forget at this point in time. } + setLinkAttributes({ url: preSignedUrl, filename: filename }); } catch (e) {} };