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 <erikjan.dewit@gmail.com>
Co-authored-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
This commit is contained in:
Stefan Guilhen 2025-07-23 15:06:08 -03:00 committed by GitHub
parent f63a870c76
commit 4f26a92d86
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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,