From 4f26a92d8623a78ad4bd88161cfad59a9e41499c Mon Sep 17 00:00:00 2001 From: Stefan Guilhen Date: Wed, 23 Jul 2025 15:06:08 -0300 Subject: [PATCH] use user and client from form when on the events section (#35098) (#40389) fixes: #35048 (cherry picked from commit c19c3c80cc41f2f66418dab1fc0ea4e70e3eca84) Signed-off-by: Erik Jan de Wit Co-authored-by: Erik Jan de Wit --- js/apps/admin-ui/src/events/UserEvents.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/apps/admin-ui/src/events/UserEvents.tsx b/js/apps/admin-ui/src/events/UserEvents.tsx index c70ad3ec21b..58ae234319f 100644 --- a/js/apps/admin-ui/src/events/UserEvents.tsx +++ b/js/apps/admin-ui/src/events/UserEvents.tsx @@ -171,10 +171,10 @@ export const UserEvents = ({ user, client }: UserEventsProps) => { function loader(first?: number, max?: number) { return adminClient.realms.findEvents({ - // The admin client wants 'dateFrom' and 'dateTo' to be Date objects, however it cannot actually handle them so we need to cast to any. - ...(activeFilters as any), client, user, + // The admin client wants 'dateFrom' and 'dateTo' to be Date objects, however it cannot actually handle them so we need to cast to any. + ...(activeFilters as any), realm, first, max,