mirror of
https://github.com/keycloak/keycloak.git
synced 2025-12-16 20:15:46 -06:00
Closes #27444
Signed-off-by: Simon Hanna <simon.hanna@aeb.com>
(cherry picked from commit 401e1bd636)
Co-authored-by: Simon Hanna <33220646+simhnna@users.noreply.github.com>
This commit is contained in:
@@ -34,10 +34,10 @@ export default function CreateClientRole() {
|
||||
...role,
|
||||
});
|
||||
|
||||
const createdRole = await adminClient.clients.findRole({
|
||||
const createdRole = (await adminClient.clients.findRole({
|
||||
id: clientId!,
|
||||
roleName: role.name!,
|
||||
});
|
||||
}))!;
|
||||
|
||||
addAlert(t("roleCreated"), AlertVariant.success);
|
||||
navigate(
|
||||
|
||||
@@ -113,7 +113,7 @@ export class Clients extends Resource<{ realm?: string }> {
|
||||
|
||||
public findRole = this.makeRequest<
|
||||
{ id: string; roleName: string },
|
||||
RoleRepresentation
|
||||
RoleRepresentation | null
|
||||
>({
|
||||
method: "GET",
|
||||
path: "/{id}/roles/{roleName}",
|
||||
|
||||
Reference in New Issue
Block a user