File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/views/tenant/administration Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -46,18 +46,20 @@ const requiredArray = (value) => {
46
46
const duplicateRoles = value
47
47
. map ( ( item ) => item . roleDefinitionId )
48
48
. filter ( ( item , index , self ) => index !== self . indexOf ( item ) )
49
- console . log ( duplicateRoles )
50
49
51
50
if ( duplicateRoles . length > 0 ) {
52
51
var duplicates = value . filter ( ( item ) => duplicateRoles . includes ( item . roleDefinitionId ) )
53
52
/// get unique list of duplicate roles
53
+
54
54
duplicates = duplicates
55
55
. filter (
56
56
( role , index , self ) =>
57
57
index === self . findIndex ( ( t ) => t . roleDefinitionId === role . roleDefinitionId ) ,
58
58
)
59
59
. 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
+ ) } `
61
63
} else {
62
64
return undefined
63
65
}
You can’t perform that action at this time.
0 commit comments