File tree 3 files changed +17
-2
lines changed
3 files changed +17
-2
lines changed Original file line number Diff line number Diff line change
1
+ ## 4.0.1 (2022-01-21)
2
+
3
+ ### ✨ Bugs
4
+
5
+ * Fix config props does not work in CSVReader
6
+
7
+ Credits
8
+
9
+ * [ @jadenmazzone ] ( https://github.com/jadenmazzone )
10
+
1
11
## 4.0.0 (2022-01-18)
2
12
3
13
### ✨ Features
Original file line number Diff line number Diff line change @@ -886,7 +886,11 @@ readRemoteFile(url, {
886
886
887
887
## 📜 Changelog
888
888
889
- Latest version 4.0.0 (2022-01-18):
889
+ Latest version 4.0.1 (2022-01-21):
890
+
891
+ * Fix config props does not work in CSVReader
892
+
893
+ Version 4.0.0 (2022-01-18):
890
894
891
895
* Improve code performance
892
896
* Rewrite any existing based components to hooks
Original file line number Diff line number Diff line change @@ -298,7 +298,6 @@ function useCSVReaderComponent<T = any>() {
298
298
const reader = new window . FileReader ( ) ;
299
299
let percentage = 0 ;
300
300
301
- configs = Object . assign ( { } , config , configs ) ;
302
301
acceptedFiles . forEach ( ( file : File ) => {
303
302
dispatch ( {
304
303
acceptedFile : file ,
@@ -344,6 +343,8 @@ function useCSVReaderComponent<T = any>() {
344
343
setProgressBarPercentage ( percentage ) ;
345
344
} ,
346
345
} ;
346
+ configs = Object . assign ( { } , config , configs ) ;
347
+
347
348
reader . onload = ( e : any ) => {
348
349
PapaParse . parse ( e . target . result , configs ) ;
349
350
} ;
You can’t perform that action at this time.
0 commit comments