diff --git a/frontend/public/components/secrets/create-secret/SecretFormWrapper.tsx b/frontend/public/components/secrets/create-secret/SecretFormWrapper.tsx index e896a25334f..ecaef5f5d07 100644 --- a/frontend/public/components/secrets/create-secret/SecretFormWrapper.tsx +++ b/frontend/public/components/secrets/create-secret/SecretFormWrapper.tsx @@ -60,7 +60,7 @@ export const SecretFormWrapper: React.FCC = (props) => { const [stringData, setStringData] = 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;