mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 09:58:12 +00:00
fix issue
This commit is contained in:
@@ -639,7 +639,7 @@ const UserManagementPage = () => {
|
|||||||
// Org/unit admins are scoped to the orgs they administer via my-admin-organizations.
|
// Org/unit admins are scoped to the orgs they administer via my-admin-organizations.
|
||||||
const endpoint = isSuperAdmin
|
const endpoint = isSuperAdmin
|
||||||
? "/organizations"
|
? "/organizations"
|
||||||
: "/organizations/my-admin-organizations";
|
: "/organizations/with-admin-flag";
|
||||||
const response = await api.get<ListResponse<OrganizationRecord>>(endpoint);
|
const response = await api.get<ListResponse<OrganizationRecord>>(endpoint);
|
||||||
const nextOrganizations = getItems(response.data);
|
const nextOrganizations = getItems(response.data);
|
||||||
setOrganizations(nextOrganizations);
|
setOrganizations(nextOrganizations);
|
||||||
|
|||||||
Reference in New Issue
Block a user