diff --git a/packages/console/src/pages/Roles/components/AssignRoleModal/index.tsx b/packages/console/src/pages/Roles/components/AssignRoleModal/index.tsx index 85a30b59c..6c51b5e10 100644 --- a/packages/console/src/pages/Roles/components/AssignRoleModal/index.tsx +++ b/packages/console/src/pages/Roles/components/AssignRoleModal/index.tsx @@ -125,8 +125,8 @@ function AssignRoleModal({ parameters: { excludeRoleId: roleId, ...(isUser - ? { 'search.type': ApplicationType.MachineToMachine, 'mode.type': 'exact' } - : {}), + ? {} + : { 'search.type': ApplicationType.MachineToMachine, 'mode.type': 'exact' }), }, }} selectedEntities={entities}