diff --git a/ui/actions/manage-groups/manage-groups.ts b/ui/actions/manage-groups/manage-groups.ts
index 750f4e76f4..a42684a40c 100644
--- a/ui/actions/manage-groups/manage-groups.ts
+++ b/ui/actions/manage-groups/manage-groups.ts
@@ -171,14 +171,13 @@ export const updateProviderGroup = async (
};
// Add relationships only if there are items
- if (providers.length > 0) {
+ if (providers.length >= 0) {
payload.data.relationships!.providers = { data: providers };
}
- if (roles.length > 0) {
+ if (roles.length >= 0) {
payload.data.relationships!.roles = { data: roles };
}
-
try {
const url = `${keyServer}/provider-groups/${providerGroupId}`;
const response = await fetch(url, {
diff --git a/ui/app/(prowler)/manage-groups/page.tsx b/ui/app/(prowler)/manage-groups/page.tsx
index 7994f5edb9..4191838241 100644
--- a/ui/app/(prowler)/manage-groups/page.tsx
+++ b/ui/app/(prowler)/manage-groups/page.tsx
@@ -30,7 +30,15 @@ export default function ManageGroupsPage({
{providerGroupId ? (
+ Create a new provider group to manage the providers and roles. +
++ Edit the provider group to manage the providers and roles. +
+- Provide a name for the group: -
+
Roles can also be associated with the group. This step is optional and can be completed later if needed or from the Roles page.
diff --git a/ui/components/manage-groups/forms/edit-group-form.tsx b/ui/components/manage-groups/forms/edit-group-form.tsx index ddabdaa831..193800e580 100644 --- a/ui/components/manage-groups/forms/edit-group-form.tsx +++ b/ui/components/manage-groups/forms/edit-group-form.tsx @@ -142,10 +142,6 @@ export const EditGroupForm = ({ onSubmit={form.handleSubmit(onSubmitClient)} className="flex flex-col space-y-4" > -- Edit the group name or associated providers: -
- {/* Field for the name */}+
The roles associated with the group can be edited directly here or from the Roles page.