Do not show Created on DetailsPane when there's no timestamp.

Signed-off-by: Juho Heikka <juho.heikka@gmail.com>
This commit is contained in:
Juho Heikka committed 2023-01-19 17:41:29 +02:00
1 parent 305c4a5573
commit a5c194e5ed
1 file changed
+1 -1
@@ -62,7 +62,7 @@ const NonInjectedKubeObjectMeta = observer(({
return ( return (
<> <>
<DrawerItem name="Created" hidden={isHidden("creationTimestamp")}> <DrawerItem name="Created" hidden={isHidden("creationTimestamp") || !creationTimestamp}>
<KubeObjectAge object={object} compact={false} /> <KubeObjectAge object={object} compact={false} />
{" ago "} {" ago "}
{creationTimestamp && <LocaleDate date={creationTimestamp} />} {creationTimestamp && <LocaleDate date={creationTimestamp} />}