fix select paging issue (#1237)

fixes: #1213
This commit is contained in:
Erik Jan de Wit 2021-09-27 10:38:07 +02:00 committed by GitHub
parent 23178d8c66
commit a74921b914
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -153,6 +153,7 @@ export const AddRoleMappingModal = ({
const realmRoles = availableRoles.map((role) => { const realmRoles = availableRoles.map((role) => {
return { return {
id: role.id,
role, role,
client: undefined, client: undefined,
}; };
@ -191,6 +192,7 @@ export const AddRoleMappingModal = ({
return clientAvailableRoles.map((role) => { return clientAvailableRoles.map((role) => {
return { return {
id: role.id,
role, role,
client, client,
}; };
@ -231,7 +233,7 @@ export const AddRoleMappingModal = ({
<Button <Button
data-testid="assign" data-testid="assign"
key="confirm" key="confirm"
isDisabled={selectedRows?.length === 0} isDisabled={selectedRows.length === 0}
variant="primary" variant="primary"
onClick={() => { onClick={() => {
onAssign(selectedRows); onAssign(selectedRows);