Skip to content

Commit

Permalink
improve condition for showing pages for table with pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
torztomasz committed Jul 12, 2023
1 parent ccb6991 commit 180767f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export function TableWithPagination(props: TableWithPaginationProps) {
: `There are no ${props.entryLongNamePlural} to view.`}
</div>
)}
{totalPages && (
{totalPages !== undefined && totalPages !== 0 && (
<div className="mt-6 flex flex-col items-center justify-between gap-4 sm:flex-row">
<div className="flex-1">
<TablePagination
Expand Down

0 comments on commit 180767f

Please sign in to comment.