diff --git a/src/frontend/src/pages/part/CategoryDetail.tsx b/src/frontend/src/pages/part/CategoryDetail.tsx index dba51739a8..fe4e00c360 100644 --- a/src/frontend/src/pages/part/CategoryDetail.tsx +++ b/src/frontend/src/pages/part/CategoryDetail.tsx @@ -342,8 +342,8 @@ export default function CategoryDetail() { selectedId={category?.pk} /> <PageDetail - title={t`Part Category`} - subtitle={category?.name} + title={category?.name ?? t`Part Category`} + subtitle={category?.description} icon={category?.icon && <ApiIcon name={category?.icon} />} breadcrumbs={breadcrumbs} breadcrumbAction={() => { diff --git a/src/frontend/src/pages/stock/LocationDetail.tsx b/src/frontend/src/pages/stock/LocationDetail.tsx index f7ece9c4c0..9c315c2604 100644 --- a/src/frontend/src/pages/stock/LocationDetail.tsx +++ b/src/frontend/src/pages/stock/LocationDetail.tsx @@ -390,8 +390,8 @@ export default function Stock() { selectedId={location?.pk} /> <PageDetail - title={t`Stock Items`} - subtitle={location?.name} + title={location?.name ?? t`Stock Location`} + subtitle={location?.description} icon={location?.icon && <ApiIcon name={location?.icon} />} actions={locationActions} editAction={editLocation.open}