File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/components/ControlPlane Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ import type { Resource } from '../../utils/removeManagedFieldsAndFilterData.ts';
1717import { isForbiddenError } from '../../utils/isForbiddenError.ts' ;
1818import { useNamespaceSelect } from '../../hooks/useNamespaceSelect.ts' ;
1919import IllustratedError from '../Shared/IllustratedError.tsx' ;
20+ import { formatDateAsTimeAgo } from '../../utils/i18n/timeAgo.ts' ;
2021
2122type ConfigMapRow = {
2223 name : string ;
@@ -48,7 +49,7 @@ export function McpConfigMaps({
4849 ? ( configMapsData ?? [ ] ) . map ( ( cm : ConfigMapListItem ) => ( {
4950 name : cm . metadata . name ,
5051 namespace : cm . metadata . namespace ,
51- created : cm . metadata . creationTimestamp ,
52+ created : cm . metadata . creationTimestamp ? formatDateAsTimeAgo ( cm . metadata . creationTimestamp ) : '' ,
5253 item : cm ,
5354 } ) )
5455 : [ ] ;
You can’t perform that action at this time.
0 commit comments