Skip to content

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

avoid dup toast

Thiago Araujo da Silvad675536c12e0
diff --git a/frontend/src/views/Alerts/AlertForm.tsx b/frontend/src/views/Alerts/AlertForm.tsx
index 934a8f6099..c1c1d318bb 100644
--- a/frontend/src/views/Alerts/AlertForm.tsx
+++ b/frontend/src/views/Alerts/AlertForm.tsx
@@ -235,11 +235,8 @@ export const AlertForm = ({
createNotification({ text: "Successfully created alert", type: "success" });
}
onComplete();
- } catch (err) {
- const message =
- (err as { response?: { data?: { message?: string } } })?.response?.data?.message ??
- "Failed to save alert";
- createNotification({ text: message, type: "error" });
+ } catch {
+ // MutationCache reports request errors globally; keep the form open for another attempt.
}
};