Skip to content

Commit ecd72d9

Browse files
committed
OpenConceptLab/ocl_issues#2209 | reading sheet as raw to remove Sheetjs's 'helpfulness'
1 parent 5b94625 commit ecd72d9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/map-projects/MapProject.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ const MapProject = () => {
217217
}
218218
if(response.data?.file_url) {
219219
fetch(response.data.file_url).then(res => res.text()).then(csvText => {
220-
const workbook = XLSX.read(csvText, { type: "string" });
220+
const workbook = XLSX.read(csvText, { type: "string", raw: true });
221221
const sheetName = workbook.SheetNames[0];
222222
const sheet = workbook.Sheets[sheetName];
223223
const data = XLSX.utils.sheet_to_json(sheet, { raw: false, defval: '' })

0 commit comments

Comments
 (0)