File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -37,12 +37,12 @@ class AppConfig {
37
37
38
38
get formats ( ) {
39
39
const formats = [ ] ;
40
- if ( this . #options. csv ) {
41
- formats . push ( "csv" ) ;
42
- }
43
40
if ( this . #options. json ) {
44
41
formats . push ( "json" ) ;
45
42
}
43
+ if ( this . #options. csv ) {
44
+ formats . push ( "csv" ) ;
45
+ }
46
46
return formats ;
47
47
}
48
48
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ const _formatCSV = (result) => {
37
37
} ;
38
38
39
39
function _mapCSVHeaders ( dataArray ) {
40
- return dataArray . forEach ( ( dataItem , index ) => {
40
+ dataArray . forEach ( ( dataItem , index ) => {
41
41
const newDataItem = { } ;
42
42
Object . keys ( dataItem ) . forEach ( ( key ) => {
43
43
if ( _keyMappings [ key ] ) {
@@ -49,6 +49,7 @@ function _mapCSVHeaders(dataArray) {
49
49
50
50
dataArray [ index ] = newDataItem ;
51
51
} ) ;
52
+ return dataArray ;
52
53
}
53
54
54
55
const _keyMappings = {
You can’t perform that action at this time.
0 commit comments