diff --git a/frontend/public/components/secrets/create-secret/SecretFormWrapper.tsx b/frontend/public/components/secrets/create-secret/SecretFormWrapper.tsx index 6579464680c..0e16f23c14d 100644 --- a/frontend/public/components/secrets/create-secret/SecretFormWrapper.tsx +++ b/frontend/public/components/secrets/create-secret/SecretFormWrapper.tsx @@ -46,7 +46,7 @@ export const SecretFormWrapper: React.FC = (props) => { const [stringData, setStringData] = React.useState( Object.entries(props.obj?.data ?? {}).reduce>((acc, [key, value]) => { if (isBinary(null, Buffer.from(value, 'base64'))) { - return null; + return acc; } acc[key] = value ? Base64.decode(value) : ''; return acc;