diff --git a/src/table/hooks/useRowSelect.tsx b/src/table/hooks/useRowSelect.tsx index 6e3a34ca2a..94db1f483f 100644 --- a/src/table/hooks/useRowSelect.tsx +++ b/src/table/hooks/useRowSelect.tsx @@ -37,7 +37,7 @@ export default function useRowSelect( const canSelectedRows = useMemo(() => { const currentData = reserveSelectedRowOnPaginate ? data : currentPaginateData; - return currentData.filter((row, rowIndex): boolean => !isDisabled(row, rowIndex)); + return currentData?.filter((row, rowIndex): boolean => !isDisabled(row, rowIndex)) || []; // eslint-disable-next-line }, [reserveSelectedRowOnPaginate, data, currentPaginateData]);