Skip to content

Commit

Permalink
Update health/micro-ui/web/micro-ui-internals/packages/modules/microp…
Browse files Browse the repository at this point in the history
…lan/src/utils/downloadExcel.js

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
ashish-egov and coderabbitai[bot] authored Sep 30, 2024
1 parent d9525f3 commit d631f37
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const downloadExcelWithCustomName = ({ fileStoreId = null, customName = n
const downloadExcel = (blob, fileName) => {
const link = document.createElement("a");
link.href = URL.createObjectURL(blob);
link.download = fileName + ".xlsx";
link.download = `${fileName}.xlsx`;
document.body.append(link);
link.click();
link.remove();
Expand Down

0 comments on commit d631f37

Please sign in to comment.