Skip to content

Commit 9f088bb

Browse files
fix:RowRenderer crashes when ScrollableRange is empty #464
1 parent c981381 commit 9f088bb

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)