From 0a1fb5ada5983d8ee061510ed686f9fc1413dffd Mon Sep 17 00:00:00 2001 From: Erik Jan de Wit Date: Tue, 7 Jan 2025 08:01:02 +0100 Subject: [PATCH] fixed pagination fixes: #36196 Signed-off-by: Erik Jan de Wit --- js/apps/admin-ui/src/clients/ClientSessions.tsx | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/js/apps/admin-ui/src/clients/ClientSessions.tsx b/js/apps/admin-ui/src/clients/ClientSessions.tsx index 50c677e43dde..654074ff3c47 100644 --- a/js/apps/admin-ui/src/clients/ClientSessions.tsx +++ b/js/apps/admin-ui/src/clients/ClientSessions.tsx @@ -15,10 +15,7 @@ export const ClientSessions = ({ client }: ClientSessionsProps) => { const { t } = useTranslation(); - const loader: LoaderFunction = async ( - first, - max, - ) => { + const loader: LoaderFunction = async () => { const mapSessionsToType = (type: string) => (sessions: UserSessionRepresentation[]) => sessions.map((session) => ({ @@ -28,13 +25,11 @@ export const ClientSessions = ({ client }: ClientSessionsProps) => { const allSessions = await Promise.all([ adminClient.clients - .listSessions({ id: client.id!, first, max }) + .listSessions({ id: client.id! }) .then(mapSessionsToType(t("sessionsType.regularSSO"))), adminClient.clients .listOfflineSessions({ id: client.id!, - first, - max, }) .then(mapSessionsToType(t("sessionsType.offline"))), ]);