rolling back to previous logic for displaying total count with respect to serverside pagination (#7625)

This commit is contained in:
Manish Kushare 2023-10-05 15:46:58 +05:30 committed by GitHub
parent ddadf1a552
commit d656de65ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1528,7 +1528,8 @@ export function Table({
) : (
!loadingState && (
<span data-cy={`footer-number-of-records`} className="font-weight-500 color-slate11">
{`${globalFilteredRows.length} Records`}
{clientSidePagination && !serverSidePagination && `${globalFilteredRows.length} Records`}
{serverSidePagination && totalRecords ? `${totalRecords} Records` : ''}
</span>
)
))}