Skip to content

Commit 36430c4

Browse files
committed
fix(io): handle undefined cell values in isColumnEmpty check
Sparse Excel rows where eachCell skips empty cells leave row[col] as undefined. Strict === null missed this, causing .toString() to throw TypeError and silently abort file loading.
1 parent 01c19d6 commit 36430c4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/managers/io.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ class IOManager {
465465

466466
const isColumnEmpty = (col) => sheetJson.every(row => {
467467
const v = row[col];
468-
return v === null || v.toString().trim() === "";
468+
return v == null || v.toString().trim() === "";
469469
});
470470

471471
const emptyRequiredColumns = allCols.filter(col =>

0 commit comments

Comments
 (0)