fix: condition fixed

This commit is contained in:
Chesterkxng
2025-03-28 19:59:59 +00:00
parent 39cf7aa4e3
commit 968a354d84

View File

@@ -21,7 +21,7 @@ export function csvRowsToColumns(
.split('\n')
.map((row) => row.split(','))
.filter(
(row) => row.length > 1 && !row[0].trim().startsWith(commentCharacter)
(row) => row.length > 0 && !row[0].trim().startsWith(commentCharacter)
);
const columnCount = Math.max(...rows.map((row) => row.length));
for (let i = 0; i < rows.length; i++) {