File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1189,24 +1189,24 @@ License: MIT
11891189if ( ! _results )
11901190return ;
11911191
1192- function addHeder ( header )
1192+ function addHeader ( header , i )
11931193{
11941194if ( isFunction ( _config . transformHeader ) )
1195- header = _config . transformHeader ( header ) ;
1195+ header = _config . transformHeader ( header , i ) ;
11961196
11971197_fields . push ( header ) ;
11981198}
11991199
12001200if ( Array . isArray ( _results . data [ 0 ] ) )
12011201{
12021202for ( var i = 0 ; needsHeaderRow ( ) && i < _results . data . length ; i ++ )
1203- _results . data [ i ] . forEach ( addHeder ) ;
1203+ _results . data [ i ] . forEach ( addHeader ) ;
12041204
12051205_results . data . splice ( 0 , 1 ) ;
12061206}
12071207// if _results.data[0] is not an array, we are in a step where _results.data is the row.
12081208else
1209- _results . data . forEach ( addHeder ) ;
1209+ _results . data . forEach ( addHeader ) ;
12101210}
12111211
12121212function shouldApplyDynamicTyping ( field ) {
You can’t perform that action at this time.
0 commit comments