fix(groups): display uid if alias is missing (#7138)

Co-authored-by: Pablo Lara <larabjj@gmail.com>
This commit is contained in:
Prowler Bot
2025-03-06 14:41:57 +01:00
committed by GitHub
parent 65c081ce38
commit 8e6b92792b
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -64,7 +64,7 @@ const SSRAddGroupForm = async () => {
const providersData =
providersResponse?.data?.map((provider: ProviderProps) => ({
id: provider.id,
name: provider.attributes.alias,
name: provider.attributes.alias || provider.attributes.uid,
})) || [];
const rolesData =
@@ -101,7 +101,7 @@ const SSRDataEditGroup = async ({
const providersList =
providersResponse?.data?.map((provider: ProviderProps) => ({
id: provider.id,
name: provider.attributes.alias,
name: provider.attributes.alias || provider.attributes.uid,
})) || [];
const rolesList =
@@ -126,7 +126,7 @@ export const AddGroupForm = ({
/>
</div>
{/* Providers Field */}
{/*Select Providers */}
<Controller
name="providers"
control={form.control}
@@ -153,7 +153,7 @@ export const AddGroupForm = ({
Roles can also be associated with the group. This step is optional and
can be completed later if needed or from the Roles page.
</p>
{/* Roles Field */}
{/* Select Roles */}
<Controller
name="roles"
control={form.control}