Skip to content

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

fix(cert-manager): close a pending discard prompt when connection creation completes

Claude52dc903946d1
diff --git a/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/CaInstallCertModal/useConnectionCreation.tsx b/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/CaInstallCertModal/useConnectionCreation.tsx
index 040b73b1d8..bac6e8b7a4 100644
--- a/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/CaInstallCertModal/useConnectionCreation.tsx
+++ b/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/CaInstallCertModal/useConnectionCreation.tsx
@@ -63,6 +63,7 @@ export const useConnectionCreation = (
onComplete={(connection) => {
if (attempt !== attemptRef.current) return;
setIsDirty(false);
+ setIsDiscardDialogOpen(false);
onCreated(connection);
complete();
}}