diff --git a/datahub-web-react/src/app/domain/DomainListItem.tsx b/datahub-web-react/src/app/domain/DomainListItem.tsx index b78dcc90fd503..fba3ecebfbadd 100644 --- a/datahub-web-react/src/app/domain/DomainListItem.tsx +++ b/datahub-web-react/src/app/domain/DomainListItem.tsx @@ -8,7 +8,7 @@ import { useEntityRegistry } from '../useEntityRegistry'; import AvatarsGroup from '../shared/avatar/AvatarsGroup'; import EntityDropdown from '../entity/shared/EntityDropdown'; import { EntityMenuItems } from '../entity/shared/EntityDropdown/EntityDropdown'; -import { ELASTIC_MAX_COUNT, getElasticCappedTotalValueText } from '../entity/shared/constants'; +import { getElasticCappedTotalValueText } from '../entity/shared/constants'; const DomainItemContainer = styled(Row)` display: flex; @@ -55,7 +55,7 @@ export default function DomainListItem({ domain, onDelete }: Props) { const displayName = entityRegistry.getDisplayName(EntityType.Domain, domain); const logoIcon = entityRegistry.getIcon(EntityType.Domain, 12, IconStyleType.ACCENT); const owners = domain.ownership?.owners; - let totalEntitiesText = getElasticCappedTotalValueText(domain.entities?.total || 0); + const totalEntitiesText = getElasticCappedTotalValueText(domain.entities?.total || 0); return ( diff --git a/datahub-web-react/src/app/entity/shared/constants.ts b/datahub-web-react/src/app/entity/shared/constants.ts index 30efe7a466a94..df28b3dd1e7ba 100644 --- a/datahub-web-react/src/app/entity/shared/constants.ts +++ b/datahub-web-react/src/app/entity/shared/constants.ts @@ -59,10 +59,10 @@ export const EMPTY_MESSAGES = { export const ELASTIC_MAX_COUNT = 10000; -export const getElasticCappedTotalValueText(count: number) { +export const getElasticCappedTotalValueText = (count: number) => { if (count === ELASTIC_MAX_COUNT) { return `${ELASTIC_MAX_COUNT}+`; } return `${count}`; -} +};