Skip to content

Commit f296b7e

Browse files
Merge pull request #466 from qiufeihong2018/fix/sticky-RowRenderer
fix:RowRenderer crashes when ScrollableRange is empty #464
2 parents b31f67c + 9fae17f commit f296b7e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lib/Components/RowRenderer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const MappedColumns: React.FC<RowRendererProps> = ({ columns, row, cellRenderer,
3939
borders={{
4040
...borders,
4141
left: borders.left && column.left === 0,
42-
right: (borders.right && column.idx === lastColIdx) || !(state.cellMatrix.scrollableRange.last.column.idx === location.column.idx)
42+
right: (borders.right && column.idx === lastColIdx) || !(state.cellMatrix.scrollableRange.last.column?.idx === location.column.idx)
4343
}}
4444
state={state}
4545
location={location}

0 commit comments

Comments
 (0)