Skip to content

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

fix dup toast

Thiago Araujo da Silva64c3b301ef29
diff --git a/frontend/src/pages/organization/SettingsPage/components/OrgOauthClientsTab/OauthClientModal.tsx b/frontend/src/pages/organization/SettingsPage/components/OrgOauthClientsTab/OauthClientModal.tsx
index baf373e601..a88fd1af09 100644
--- a/frontend/src/pages/organization/SettingsPage/components/OrgOauthClientsTab/OauthClientModal.tsx
+++ b/frontend/src/pages/organization/SettingsPage/components/OrgOauthClientsTab/OauthClientModal.tsx
@@ -264,13 +264,8 @@ export const OauthClientModal = ({ popUp, handlePopUpClose, onCreated }: Props)
}
handlePopUpClose("clientForm");
reset();
- } catch (error) {
- createNotification({
- text:
- (error as Error)?.message ||
- `Failed to ${isEditing ? "update" : "create"} OAuth application`,
- type: "error"
- });
+ } catch {
+ // Reported by the mutation cache's global onError.
}
};
diff --git a/frontend/src/pages/organization/SettingsPage/components/OrgOauthClientsTab/OrgOauthClientsTab.tsx b/frontend/src/pages/organization/SettingsPage/components/OrgOauthClientsTab/OrgOauthClientsTab.tsx
index 7fe871b948..567a7390bb 100644
--- a/frontend/src/pages/organization/SettingsPage/components/OrgOauthClientsTab/OrgOauthClientsTab.tsx
+++ b/frontend/src/pages/organization/SettingsPage/components/OrgOauthClientsTab/OrgOauthClientsTab.tsx
@@ -87,11 +87,8 @@ export const OrgOauthClientsTab = () => {
type: "success"
});
handlePopUpClose("deleteClient");
- } catch (error) {
- createNotification({
- text: (error as Error)?.message || "Failed to delete OAuth application",
- type: "error"
- });
+ } catch {
+ // Reported by the mutation cache's global onError; caught here only to keep the dialog open.
}
};
@@ -113,11 +110,8 @@ export const OrgOauthClientsTab = () => {
text: "Successfully rotated client secret",
type: "success"
});
- } catch (error) {
- createNotification({
- text: (error as Error)?.message || "Failed to rotate client secret",
- type: "error"
- });
+ } catch {
+ // Reported by the mutation cache's global onError; caught here only to keep the dialog open.
}
};