Merge branch 'main' into hotfix/2.1.5

This commit is contained in:
Sherfin Shamsudeen 2023-02-23 18:13:30 +05:30
commit ac21f29cec

View file

@ -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: '' });