Skip to content

Commit

Permalink
Update data-table-pagination.tsx (#500)
Browse files Browse the repository at this point in the history
pageSizeOptions could be undefined
  • Loading branch information
hgeldenhuys authored Jul 28, 2024
1 parent 40ecef6 commit 47bdea7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/data-table/data-table-pagination.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export function DataTablePagination<TData>({
<SelectValue placeholder={table.getState().pagination.pageSize} />
</SelectTrigger>
<SelectContent side="top">
{pageSizeOptions.map((pageSize) => (
{pageSizeOptions?.map((pageSize) => (
<SelectItem key={pageSize} value={`${pageSize}`}>
{pageSize}
</SelectItem>
Expand Down

0 comments on commit 47bdea7

Please sign in to comment.