Skip to content

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

fix: improve value display handling

Scott Wilsonceae1ed0e1bf
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 fc706218f2..b961775d35 100644
--- a/frontend/src/pages/secret-manager/SecretDashboardPage/components/CommitForm/CommitForm.tsx
+++ b/frontend/src/pages/secret-manager/SecretDashboardPage/components/CommitForm/CommitForm.tsx
@@ -97,7 +97,8 @@ const RenderSecretChanges = ({ onDiscard, change }: RenderResourceProps) => {
{
version: 1, // placeholder, not used
secretKey: change.newSecretName ? existingSecret.key : undefined,
- secretValue: change.secretValue ? (existingSecret.value ?? "") : undefined,
+ secretValue:
+ change.secretValue !== undefined ? (existingSecret.value ?? "") : undefined,
tags: change.tags ? (existingSecret.tags?.map((tag) => tag.slug) ?? []) : undefined,
secretMetadata: change.secretMetadata ? existingSecret.secretMetadata : undefined,
skipMultilineEncoding: