mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
allows proper submission of roles
This commit is contained in:
parent
9b702e46fe
commit
4f257655a9
@ -54,8 +54,9 @@ function AddResourceRole({ onSave, onClose, roles, i18n, resource, onError }) {
|
||||
);
|
||||
|
||||
if (selectedIndex > -1) {
|
||||
selectedRoleRows.splice(selectedIndex, 1);
|
||||
setSelectedRoleRows(selectedRoleRows);
|
||||
setSelectedRoleRows(
|
||||
selectedRoleRows.filter((r, index) => index !== selectedIndex)
|
||||
);
|
||||
} else {
|
||||
setSelectedRoleRows([...selectedRoleRows, role]);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user