Skip to content

Commit

Permalink
chore: up fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rap2hpoutre committed Jan 25, 2024
1 parent 87dba87 commit 7a6a7c5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dashboard/src/scenes/data-import-export/ImportConfig.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,9 @@ function processConfigWorkbook(workbook: WorkBook): WorkbookData {
continue;
}
const sheet = workbook.Sheets[sheetName];
const rows = utils.sheet_to_json<string[]>(sheet, { header: 1 });
const rows = utils
.sheet_to_json<string[]>(sheet, { header: 1 })
.filter((row) => row.length > 0 && row.some((cell) => cell !== undefined && cell !== null && cell !== ''));
for (const col of workbookColumns[sheetName]) {
if (!rows[0].includes(col)) data[sheetName].globalErrors.push(`La colonne ${col} est manquante`);
}
Expand Down

0 comments on commit 7a6a7c5

Please sign in to comment.