diff --git a/drc-portals/app/data/c2m2/ExpandableTable.tsx b/drc-portals/app/data/c2m2/ExpandableTable.tsx index 74759ba0..2e2de89d 100644 --- a/drc-portals/app/data/c2m2/ExpandableTable.tsx +++ b/drc-portals/app/data/c2m2/ExpandableTable.tsx @@ -10,7 +10,7 @@ import DownloadButton from './DownloadButton'; import DRSBundleButton from './DRSBundleButton'; import { isURL, getNameFromBiosampleTable, getNameFromSubjectTable, getNameFromCollectionTable, getNameFromFileProjTable } from './utils'; import Link from '@/utils/link'; -import { RowType } from './utils'; +import { RowType, formatFileSize } from './utils'; type TableFunction = (column: string) => string | undefined; @@ -132,9 +132,19 @@ const ExpandableTable: React.FC = ({ {cellValueString} ) : ( - column.toLowerCase().includes('size_in_bytes') ? - () - : () + column.toLowerCase().includes('size_in_bytes') ? // matches substring 'size_in_bytes' in both "size_in_bytes" and "uncompressed_size_in_bytes" + ( + + ) + : ( + + ) ); }); return { id: row.id, ...renderedColumns };