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