diff --git a/packages/common/business_components/src/ui/excel_download/index.tsx b/packages/common/business_components/src/ui/excel_download/index.tsx index 24f8cb4bf..034643f92 100644 --- a/packages/common/business_components/src/ui/excel_download/index.tsx +++ b/packages/common/business_components/src/ui/excel_download/index.tsx @@ -14,7 +14,7 @@ export const downloadExcel = ({ data, fileName = new Date().getTime().toString() //XLSX.write(workbook, { bookType: "xlsx", type: "binary" }); XLSX.writeFile(workbook, fileName + '.xlsx'); }; -export const filePicked=(oFile: File, headerNum:number) =>{ +export const filePicked=(oFile: File, headerNum:number=0) =>{ // Create A File Reader HTML5 const reader = new FileReader();