From 9f088bb4583127b7acd2a3fd050f2f4b9ae66fe7 Mon Sep 17 00:00:00 2001 From: qiufeihong2018 <15058301288@163.com> Date: Fri, 13 Dec 2024 17:26:05 +0800 Subject: [PATCH] fix:RowRenderer crashes when ScrollableRange is empty #464 --- src/lib/Components/RowRenderer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Components/RowRenderer.tsx b/src/lib/Components/RowRenderer.tsx index 7aa0a538..85e08e92 100644 --- a/src/lib/Components/RowRenderer.tsx +++ b/src/lib/Components/RowRenderer.tsx @@ -39,7 +39,7 @@ const MappedColumns: React.FC = ({ 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}