From 33401a420d06fd2746c6dec97c9cbd80f32a7c7c Mon Sep 17 00:00:00 2001 From: Mohammed Razak Date: Thu, 19 Dec 2024 21:02:21 +0530 Subject: [PATCH] fixes total person count --- .../record-show/hooks/useRecordShowPagePagination.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/twenty-front/src/modules/object-record/record-show/hooks/useRecordShowPagePagination.ts b/packages/twenty-front/src/modules/object-record/record-show/hooks/useRecordShowPagePagination.ts index e6e963b8579e..918ef2f6671b 100644 --- a/packages/twenty-front/src/modules/object-record/record-show/hooks/useRecordShowPagePagination.ts +++ b/packages/twenty-front/src/modules/object-record/record-show/hooks/useRecordShowPagePagination.ts @@ -165,8 +165,8 @@ export const useRecordShowPagePagination = ( const totalCount = Math.max(1, totalCountBefore, totalCountAfter); const viewNameWithCount = rankFoundInView - ? `${rankInView + 1} of ${totalCount} in ${objectLabel}` - : `${objectLabel} (${totalCount})`; + ? `${rankInView + 1} of ${totalCount + 1} in ${objectLabel}` + : `${objectLabel} (${totalCount + 1})`; return { viewName: viewNameWithCount,