diff --git a/www/src/components/Table/formatters/SubTable.tsx b/www/src/components/Table/formatters/SubTable.tsx index 1632d2ce..d989b541 100644 --- a/www/src/components/Table/formatters/SubTable.tsx +++ b/www/src/components/Table/formatters/SubTable.tsx @@ -29,6 +29,7 @@ export default function SubTable({ column, row }: CustomCellProps) { }, "") : ""; const fieldName = column.key as string; + const documentCount = row[fieldName]?.count ?? ""; const router = useRouter(); const parentLabels = queryString.parse(router.location.search).parentLabel; @@ -54,7 +55,7 @@ export default function SubTable({ column, row }: CustomCellProps) { className={clsx("cell-collapse-padding", classes.root)} > - {column.name}: {label} + {documentCount} {column.name}: {label}