diff --git a/dashboard/client/components/+workloads-pods/pod-container-env.tsx b/dashboard/client/components/+workloads-pods/pod-container-env.tsx index 2896a06215..f5cce6fa8c 100644 --- a/dashboard/client/components/+workloads-pods/pod-container-env.tsx +++ b/dashboard/client/components/+workloads-pods/pod-container-env.tsx @@ -120,8 +120,11 @@ const SecretKey = (props: SecretKeyProps) => { setSecret(secret) } - if (!secret) { - return ( + if (secret?.data?.[key]) { + return <>{base64.decode(secret.data[key])} + } + + return ( <> secretKeyRef({name}.{key})  { onClick={showKey} /> - ) - } - return <>{base64.decode(secret.data[key])} -} \ No newline at end of file + ) +}