Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix(frontend): refine secret value assignment in CommitForm component

Victor Santos2a48ee188375
diff --git a/frontend/src/pages/secret-manager/SecretDashboardPage/components/CommitForm/CommitForm.tsx b/frontend/src/pages/secret-manager/SecretDashboardPage/components/CommitForm/CommitForm.tsx
index 4497493473..2132aa66fb 100644
--- a/frontend/src/pages/secret-manager/SecretDashboardPage/components/CommitForm/CommitForm.tsx
+++ b/frontend/src/pages/secret-manager/SecretDashboardPage/components/CommitForm/CommitForm.tsx
@@ -103,7 +103,7 @@ const RenderSecretChanges = ({ onDiscard, change }: RenderResourceProps) => {
secretKey: existingSecret.key,
secretValue: change.existingSecret.secretValueHidden
? HIDDEN_SECRET_VALUE_API_MASK
- : (change.originalValue ?? change.secretValue ?? existingSecret.value ?? ""),
+ : (change.originalValue ?? existingSecret.value ?? ""),
tags: existingSecret.tags?.map((tag) => tag.slug) ?? [],
secretMetadata: existingSecret.secretMetadata,
skipMultilineEncoding: existingSecret.skipMultilineEncoding,