Skip to content

Commit 9f95cbc

Browse files
committed
return an empty string, not undefined
1 parent 85736e7 commit 9f95cbc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/csv.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,8 @@ export async function csvDataFrame({
226226
throw new Error(`Column not found: ${column}`);
227227
}
228228
const value = parsedRow.data[columnIndex]; // TODO(SL): we could convert to a type, here or in the cache
229-
return value ? { value } : undefined;
229+
// return value ? { value } : undefined;
230+
return { value: value ?? "" }; // return empty cells as empty strings, because we assume that all the row has been parsed
230231
}
231232
return undefined;
232233
}

0 commit comments

Comments
 (0)