From 53c1e2e742133e927bf84772453018a647f9368b Mon Sep 17 00:00:00 2001 From: Fred KISSIE Date: Mon, 4 May 2026 18:45:31 +0200 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../(private)/idp/[idpId]/general/page.tsx | 25 ------------------- 1 file changed, 25 deletions(-) diff --git a/src/app/[orgId]/settings/(private)/idp/[idpId]/general/page.tsx b/src/app/[orgId]/settings/(private)/idp/[idpId]/general/page.tsx index 538079b8f..69d57345c 100644 --- a/src/app/[orgId]/settings/(private)/idp/[idpId]/general/page.tsx +++ b/src/app/[orgId]/settings/(private)/idp/[idpId]/general/page.tsx @@ -175,26 +175,6 @@ export default function GeneralPage() { }, [variant]); useEffect(() => { - async function fetchRoles() { - const res = await api - .get>(`/org/${orgId}/roles`) - .catch((e) => { - console.error(e); - toast({ - variant: "destructive", - title: t("accessRoleErrorFetch"), - description: formatAxiosError( - e, - t("accessRoleErrorFetchDescription") - ) - }); - }); - - if (res?.status === 200) { - setRoles(res.data.data.roles); - } - } - const loadIdp = async ( availableRoles: { roleId: number; name: string }[] ) => { @@ -212,11 +192,6 @@ export default function GeneralPage() { const detectedRoleMappingConfig = detectRoleMappingConfig(roleMapping); - console.log({ - detectedRoleMappingConfig, - roleMapping - }); - // Extract tenant ID from Azure URLs if present let tenantId = ""; if (idpVariant === "azure" && data.idpOidcConfig?.authUrl) {