Skip to content

Commit

Permalink
update lg download all stage compnnent
Browse files Browse the repository at this point in the history
  • Loading branch information
carlsmith101 committed Jan 24, 2024
1 parent 05f4087 commit 4971118
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ function LloydGeorgeDownloadAllStage({
});

const filename = `patient-record-${nhsNumber}`;
setLinkAttributes({ url: preSignedUrl, filename: filename });
if (deleteAfterDownload) {
try {
await deleteAllDocuments({
Expand All @@ -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) {}
};

Expand Down

0 comments on commit 4971118

Please sign in to comment.