From 1dabd24f081a6d8242eb5c4f1b9776c59d5b6403 Mon Sep 17 00:00:00 2001 From: vjaris42 Date: Thu, 23 Feb 2023 18:12:18 +0530 Subject: [PATCH] add: parsing of dates as raw values (#5614) --- frontend/src/Editor/Components/FilePicker.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/Editor/Components/FilePicker.jsx b/frontend/src/Editor/Components/FilePicker.jsx index 41295d7dec..15c7389c48 100644 --- a/frontend/src/Editor/Components/FilePicker.jsx +++ b/frontend/src/Editor/Components/FilePicker.jsx @@ -388,7 +388,7 @@ FilePicker.AcceptedFiles = ({ children, width, height }) => { const processCSV = (str, delimiter = ',') => { try { - const wb = XLSX.read(str, { type: 'string' }); + const wb = XLSX.read(str, { type: 'string', raw: true }); const wsname = wb.SheetNames[0]; const ws = wb.Sheets[wsname]; const data = XLSX.utils.sheet_to_json(ws, { delimiter, defval: '' });