diff --git a/apps/admin-ui/src/sessions/RevocationModal.tsx b/apps/admin-ui/src/sessions/RevocationModal.tsx index 4e7bc8bc21..4ad216d2df 100644 --- a/apps/admin-ui/src/sessions/RevocationModal.tsx +++ b/apps/admin-ui/src/sessions/RevocationModal.tsx @@ -17,14 +17,12 @@ import { emailRegexPattern } from "../util"; import type RealmRepresentation from "@keycloak/keycloak-admin-client/lib/defs/realmRepresentation"; import { useAdminClient, useFetch } from "../context/auth/AdminClient"; import { useRealm } from "../context/realm-context/RealmContext"; -import type ClientRepresentation from "@keycloak/keycloak-admin-client/lib/defs/clientRepresentation"; import { useAlerts } from "../components/alert/Alerts"; import { KeycloakTextInput } from "../components/keycloak-text-input/KeycloakTextInput"; import type GlobalRequestResult from "@keycloak/keycloak-admin-client/lib/defs/globalRequestResult"; type RevocationModalProps = { handleModalToggle: () => void; - activeClients: ClientRepresentation[]; save: () => void; }; diff --git a/apps/admin-ui/src/sessions/SessionsSection.tsx b/apps/admin-ui/src/sessions/SessionsSection.tsx index 1b0d3ba0cc..5ce3b87e60 100644 --- a/apps/admin-ui/src/sessions/SessionsSection.tsx +++ b/apps/admin-ui/src/sessions/SessionsSection.tsx @@ -1,4 +1,3 @@ -import type ClientRepresentation from "@keycloak/keycloak-admin-client/lib/defs/clientRepresentation"; import { DropdownItem, PageSection } from "@patternfly/react-core"; import { useState } from "react"; import { useTranslation } from "react-i18next"; @@ -22,9 +21,6 @@ export default function SessionsSection() { const { realm } = useRealm(); const [revocationModalOpen, setRevocationModalOpen] = useState(false); - const [activeClientDetails, setActiveClientDetails] = useState< - ClientRepresentation[] - >([]); const [noSessions, setNoSessions] = useState(false); const handleRevocationModalToggle = () => { @@ -43,14 +39,6 @@ export default function SessionsSection() { setNoSessions(clientSessions.length === 0); - const allClients = await adminClient.clients.find(); - - const getActiveClientDetails = allClients.filter((x) => - activeClients.map((y) => y.id).includes(x.id) - ); - - setActiveClientDetails(getActiveClientDetails); - const userIds = Array.from( new Set(clientSessions.map((session) => session.userId)) ); @@ -110,7 +98,6 @@ export default function SessionsSection() { {revocationModalOpen && ( { handleRevocationModalToggle(); }}