From 348b37b8ef8b830b14fe9c75d0d3dc6dea256741 Mon Sep 17 00:00:00 2001 From: isan_rivkin Date: Sun, 17 Mar 2024 09:57:24 +0200 Subject: [PATCH] bug: fix ui groups paging (#7556) --- webui/src/pages/auth/groups/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webui/src/pages/auth/groups/index.tsx b/webui/src/pages/auth/groups/index.tsx index fc4ca3dc732..4bd25391700 100644 --- a/webui/src/pages/auth/groups/index.tsx +++ b/webui/src/pages/auth/groups/index.tsx @@ -106,7 +106,7 @@ const GroupsContainer = () => { const lc = useLoginConfigContext(); const simplified = lc.RBAC === 'simplified'; const { results, loading, error, nextPage } = useAPIWithPagination(async () => { - const groups = await auth.listGroups(after); + const groups = await auth.listGroups("", after); const enrichedResults = await Promise.all(groups?.results.map(async group => ({...group, acl: simplified && await getACLMaybe(group.id)}))); return {...groups, results: enrichedResults}; }, [after, refresh, lc.RBAC]);