From a125c0a87b0fdf5a256640514bf1427d609736ba Mon Sep 17 00:00:00 2001 From: ewelinagr Date: Wed, 14 Aug 2024 17:18:48 +0200 Subject: [PATCH] Fix rendering "from" and "to" pagination item on metadata page. --- .../mercury/src/metadata/views/MetadataViewTableContainer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/mercury/src/metadata/views/MetadataViewTableContainer.js b/projects/mercury/src/metadata/views/MetadataViewTableContainer.js index 13b54bac4..e395203ed 100644 --- a/projects/mercury/src/metadata/views/MetadataViewTableContainer.js +++ b/projects/mercury/src/metadata/views/MetadataViewTableContainer.js @@ -330,7 +330,7 @@ export const MetadataViewTableContainer = (props: MetadataViewTableContainerProp const renderTablePaginationLabel = ({from, to, countIsLoading, countHasError}) => ( - {from}-{to} of{' '} + {from}-{data?.rows ? Number(from) + data.rows.length - 1 : '...'} of{' '} {getTotalCountString(count?.count, to)}