File tree Expand file tree Collapse file tree 1 file changed +10
-14
lines changed Expand file tree Collapse file tree 1 file changed +10
-14
lines changed Original file line number Diff line number Diff line change @@ -31,18 +31,14 @@ export default function VirtualRow({
31
31
scrollLeft ,
32
32
) ;
33
33
34
- return showColumnIndexes . reduce (
35
- ( total , colIndex ) =>
36
- total . concat (
37
- < VirtualCell
38
- key = { colIndex }
39
- column = { flattenColumns [ colIndex ] }
40
- colIndex = { colIndex }
41
- style = { startIndex === colIndex ? { marginLeft : virtualOffset } : { } }
42
- cellProps = { cellPropsCollections [ colIndex ] }
43
- { ...restProps }
44
- /> ,
45
- ) ,
46
- [ ] ,
47
- ) ;
34
+ return showColumnIndexes . map ( colIndex => (
35
+ < VirtualCell
36
+ key = { colIndex }
37
+ column = { flattenColumns [ colIndex ] }
38
+ colIndex = { colIndex }
39
+ style = { startIndex === colIndex ? { marginLeft : virtualOffset } : { } }
40
+ cellProps = { cellPropsCollections [ colIndex ] }
41
+ { ...restProps }
42
+ />
43
+ ) ) ;
48
44
}
You can’t perform that action at this time.
0 commit comments