Skip to content

Commit 85a84a9

Browse files
authored
Merge pull request #2750 from JohnDuprey/dev
GDAP Invite tweaks
2 parents 5f11caf + f0768c6 commit 85a84a9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/views/tenant/administration/GDAPInviteWizard.jsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,20 @@ const requiredArray = (value) => {
4646
const duplicateRoles = value
4747
.map((item) => item.roleDefinitionId)
4848
.filter((item, index, self) => index !== self.indexOf(item))
49-
console.log(duplicateRoles)
5049

5150
if (duplicateRoles.length > 0) {
5251
var duplicates = value.filter((item) => duplicateRoles.includes(item.roleDefinitionId))
5352
/// get unique list of duplicate roles
53+
5454
duplicates = duplicates
5555
.filter(
5656
(role, index, self) =>
5757
index === self.findIndex((t) => t.roleDefinitionId === role.roleDefinitionId),
5858
)
5959
.map((role) => role.RoleName)
60-
return `Duplicate GDAP Roles selected, remove one of the mapped groups for the listed roles to continue: ${duplicates}`
60+
return `Duplicate GDAP Roles selected, ensure there is only one group mapping for the listed roles to continue: ${duplicates.join(
61+
', ',
62+
)}`
6163
} else {
6264
return undefined
6365
}

0 commit comments

Comments
 (0)