Skip to content

Commit

Permalink
Merge pull request #1551 from thehyve/fix-pagination-with-limit
Browse files Browse the repository at this point in the history
Fix rendering "from" and "to" pagination item on metadata page.
  • Loading branch information
ewelinagr authored Aug 15, 2024
2 parents 0b6be79 + a125c0a commit cda0534
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ export const MetadataViewTableContainer = (props: MetadataViewTableContainerProp
const renderTablePaginationLabel = ({from, to, countIsLoading, countHasError}) => (
<span>
<Typography variant="body2" component="span" display="inline">
{from}-{to} of{' '}
{from}-{data?.rows ? Number(from) + data.rows.length - 1 : '...'} of{' '}
</Typography>
<Typography variant="body2" component="span" display="inline" className={classes.tablePaginationLabel}>
{getTotalCountString(count?.count, to)}
Expand Down

0 comments on commit cda0534

Please sign in to comment.