Do not show Created on DetailsPane when there's no timestamp. (#6984)

This commit is contained in:
Juho Heikka authored and GitHub committed 2023-01-19 18:47:20 +02:00
1 parent 305c4a5573
commit 8634c3b56f
3 files changed
+1 -76

No files matched your search

@@ -62,7 +62,7 @@ const NonInjectedKubeObjectMeta = observer(({
return (
<>
<DrawerItem name="Created" hidden={isHidden("creationTimestamp")}>
<DrawerItem name="Created" hidden={isHidden("creationTimestamp") || !creationTimestamp}>
<KubeObjectAge object={object} compact={false} />
{" ago "}
{creationTimestamp && <LocaleDate date={creationTimestamp} />}