mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-05 03:12:14 +00:00
fix(ui): show active organization ID in profile page (#10617)
This commit is contained in:
@@ -77,11 +77,7 @@ const SSRDataUser = async ({
|
||||
{},
|
||||
);
|
||||
|
||||
const firstUserMembership = membershipsIncluded.find(
|
||||
(m) => m.relationships?.user?.data?.id === userData.id,
|
||||
);
|
||||
|
||||
const userTenantId = firstUserMembership?.relationships?.tenant?.data?.id;
|
||||
const userTenantId = session?.tenantId;
|
||||
|
||||
const userRoleIds =
|
||||
userData.relationships?.roles?.data?.map((r) => r.id) || [];
|
||||
|
||||
Reference in New Issue
Block a user