Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
bosiraphael committed Dec 17, 2024
1 parent 29f3e22 commit 2787ce9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,13 +153,13 @@ export const useRecordShowPagePagination = (

const rankInView = recordIdsInCache.findIndex((id) => id === objectRecordId);

const rankFoundInFiew = rankInView > -1;
const rankFoundInView = rankInView > -1;

const objectLabel = capitalize(objectMetadataItem.labelPlural);

const totalCount = Math.max(1, totalCountBefore, totalCountAfter);

const viewNameWithCount = rankFoundInFiew
const viewNameWithCount = rankFoundInView
? `${rankInView + 1} of ${totalCount} in ${objectLabel}`
: `${objectLabel} (${totalCount})`;

Expand Down

0 comments on commit 2787ce9

Please sign in to comment.