Skip to content

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

improvement: remove duplicate error toast on create secret failure

Scott Wilsonc15484fd8c20
diff --git a/frontend/src/pages/secret-manager/OverviewPage/components/CreateSecretForm/CreateSecretForm.tsx b/frontend/src/pages/secret-manager/OverviewPage/components/CreateSecretForm/CreateSecretForm.tsx
index 0536a73e62..a3f13940d2 100644
--- a/frontend/src/pages/secret-manager/OverviewPage/components/CreateSecretForm/CreateSecretForm.tsx
+++ b/frontend/src/pages/secret-manager/OverviewPage/components/CreateSecretForm/CreateSecretForm.tsx
@@ -210,10 +210,8 @@ export const CreateSecretForm = ({ secretPath = "/", defaultSelectedEnvs, onClos
}
if (!updatedEnvs.length && !forApprovalEnvs.length) {
- createNotification({
- type: "error",
- text: "Failed to create secrets"
- });
+ // this should only occur when a toast notifcation is created from failed mutation
+ console.warn("failed to create secrets");
} else if (createMore) {
setValue("key", "");
setValue("value", "");