Skip to content

Commit 0a371ad

Browse files
committed
Remove redundant spread
1 parent c9abc34 commit 0a371ad

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

srcjs/Reactable.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1593,9 +1593,8 @@ function Table({
15931593
}
15941594

15951595
const resolvedRowProps = row.getRowProps(rowProps)
1596-
// Merge virtual style for absolute positioning in virtual mode
1597-
const trGroupStyle = virtualStyle ? { ...virtualStyle } : undefined
1598-
// For virtual mode: ref for measuring, data-index for virtualizer tracking
1596+
// For virtual mode: style for absolute positioning, ref for measuring, data-index for virtualizer tracking
1597+
const trGroupStyle = virtualStyle
15991598
const trGroupProps = {
16001599
key: `${row.depth}_${viewIndex}`,
16011600
className: css(theme.rowGroupStyle),

0 commit comments

Comments
 (0)