Skip to content

Commit

Permalink
APPEALS-43268 fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
breedbah committed Oct 25, 2024
1 parent 805e301 commit 01fcc14
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/app/hearings/components/WorkOrderDetails.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,13 @@ export const WorkOrderDetails = ({ taskNumber }) => {

const downloadFile = async (workOrderLink) => {
try {
const response = await ApiUtil.get(`/hearings/transcription_files/fetch_file`, {
const response = await ApiUtil.get('/hearings/transcription_files/fetch_file', {
query: { work_order_link: workOrderLink },
responseType: 'blob'
});

const blob = new Blob([response.data], { type: 'application/vnd.ms-excel' });

FileSaver.saveAs(blob, File.basename(workOrderLink));
} catch (err) {
console.error('Error downloading file:', err);
Expand Down

0 comments on commit 01fcc14

Please sign in to comment.