Skip to content

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

fix entry when the modal closes

adilson5ed3c2b887bf
diff --git a/frontend/src/pages/secret-manager/SecretDashboardPage/components/DynamicSecretListView/CreateDynamicSecretLease.tsx b/frontend/src/pages/secret-manager/SecretDashboardPage/components/DynamicSecretListView/CreateDynamicSecretLease.tsx
index e551ebd41e..17f73564bd 100644
--- a/frontend/src/pages/secret-manager/SecretDashboardPage/components/DynamicSecretListView/CreateDynamicSecretLease.tsx
+++ b/frontend/src/pages/secret-manager/SecretDashboardPage/components/DynamicSecretListView/CreateDynamicSecretLease.tsx
@@ -151,6 +151,8 @@ const renderOutputForm = (
}
const entry = DYNAMIC_SECRET_PROVIDER_OUTPUTS[provider];
+ if (!entry) return null;
+
const record = (data ?? {}) as Record<string, unknown>;
const presentFields = entry.outputFields.filter(
(f) => record[f.name] !== undefined && record[f.name] !== null