We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91feaac commit aa788a9Copy full SHA for aa788a9
src/VirtualTable/VirtualRow.tsx
@@ -31,18 +31,14 @@ export default function VirtualRow({
31
scrollLeft,
32
);
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
- );
+ return showColumnIndexes.map(colIndex => (
+ <VirtualCell
+ key={colIndex}
+ column={flattenColumns[colIndex]}
+ colIndex={colIndex}
+ style={startIndex === colIndex ? { marginLeft: virtualOffset } : {}}
+ cellProps={cellPropsCollections[colIndex]}
+ {...restProps}
+ />
+ ));
48
}
0 commit comments