Skip to content

Commit

Permalink
fix:RowRenderer crashes when ScrollableRange is empty silevis#464
Browse files Browse the repository at this point in the history
  • Loading branch information
qiufeihong2018 committed Dec 13, 2024
1 parent c981381 commit 9f088bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/Components/RowRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const MappedColumns: React.FC<RowRendererProps> = ({ columns, row, cellRenderer,
borders={{
...borders,
left: borders.left && column.left === 0,
right: (borders.right && column.idx === lastColIdx) || !(state.cellMatrix.scrollableRange.last.column.idx === location.column.idx)
right: (borders.right && column.idx === lastColIdx) || !(state.cellMatrix.scrollableRange.last.column?.idx === location.column.idx)
}}
state={state}
location={location}
Expand Down

0 comments on commit 9f088bb

Please sign in to comment.