diff options
Diffstat (limited to 'components/form-data')
| -rw-r--r-- | components/form-data/import-excel-form.tsx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/components/form-data/import-excel-form.tsx b/components/form-data/import-excel-form.tsx index 82c7afc8..e3ac9e0e 100644 --- a/components/form-data/import-excel-form.tsx +++ b/components/form-data/import-excel-form.tsx @@ -53,6 +53,12 @@ interface GenericData { * Create error sheet with import validation results */ function createImportErrorSheet(workbook: ExcelJS.Workbook, errors: ImportError[], headerErrors?: string[]) { + + const existingErrorSheet = workbook.getWorksheet("Import_Errors"); + if (existingErrorSheet) { + workbook.removeWorksheet("Import_Errors"); + } + const errorSheet = workbook.addWorksheet("Import_Errors"); // Add header error section if exists |
