diff --git a/awx/ui_next/src/components/AddRole/SelectResourceStep.jsx b/awx/ui_next/src/components/AddRole/SelectResourceStep.jsx index 7489b707a8..d74e08b823 100644 --- a/awx/ui_next/src/components/AddRole/SelectResourceStep.jsx +++ b/awx/ui_next/src/components/AddRole/SelectResourceStep.jsx @@ -3,7 +3,6 @@ import PropTypes from 'prop-types'; import { withRouter, useLocation } from 'react-router-dom'; import { t } from '@lingui/macro'; import useRequest from '../../util/useRequest'; - import { SearchColumns, SortColumns } from '../../types'; import DataListToolbar from '../DataListToolbar'; import CheckboxListItem from '../CheckboxListItem'; diff --git a/awx/ui_next/src/components/CheckboxListItem/CheckboxListItem.jsx b/awx/ui_next/src/components/CheckboxListItem/CheckboxListItem.jsx index c76a542ea2..1467293026 100644 --- a/awx/ui_next/src/components/CheckboxListItem/CheckboxListItem.jsx +++ b/awx/ui_next/src/components/CheckboxListItem/CheckboxListItem.jsx @@ -4,7 +4,6 @@ import { t } from '@lingui/macro'; import { Td, Tr } from '@patternfly/react-table'; const CheckboxListItem = ({ - isDisabled = false, isRadio = false, isSelected = false, itemId, @@ -16,15 +15,26 @@ const CheckboxListItem = ({ columns, item, }) => { + const handleRowClick = () => { + if (isSelected && !isRadio) { + onDeselect(itemId); + } else { + onSelect(itemId); + } + }; + return ( - +