mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 17:08:34 +00:00
add: parsing of dates as raw values (#5614)
This commit is contained in:
parent
41dbbb2e34
commit
1dabd24f08
1 changed files with 1 additions and 1 deletions
|
|
@ -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: '' });
|
||||
|
|
|
|||
Loading…
Reference in a new issue