We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e415b6 commit 31b5550Copy full SHA for 31b5550
src/useCSVReader.tsx
@@ -298,7 +298,6 @@ function useCSVReaderComponent<T = any>() {
298
const reader = new window.FileReader();
299
let percentage = 0;
300
301
- configs = Object.assign({}, config, configs);
302
acceptedFiles.forEach((file: File) => {
303
dispatch({
304
acceptedFile: file,
@@ -344,6 +343,8 @@ function useCSVReaderComponent<T = any>() {
344
343
setProgressBarPercentage(percentage);
345
},
346
};
+ configs = Object.assign({}, config, configs);
347
+
348
reader.onload = (e: any) => {
349
PapaParse.parse(e.target.result, configs);
350
0 commit comments