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

This commit is contained in:
Pablo Lara
2025-03-06 14:37:36 +01:00
committed by GitHub
parent ad456ae2fe
commit e5a5b7af5c
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}