diff --git a/awx/ui_next/src/components/CheckboxListItem/CheckboxListItem.jsx b/awx/ui_next/src/components/CheckboxListItem/CheckboxListItem.jsx index cdad44c60e..c8561f5982 100644 --- a/awx/ui_next/src/components/CheckboxListItem/CheckboxListItem.jsx +++ b/awx/ui_next/src/components/CheckboxListItem/CheckboxListItem.jsx @@ -10,7 +10,14 @@ import { import DataListRadio from '@components/DataListRadio'; import VerticalSeparator from '../VerticalSeparator'; -const CheckboxListItem = ({ itemId, name, label, isSelected, onSelect, isRadio }) => { +const CheckboxListItem = ({ + itemId, + name, + label, + isSelected, + onSelect, + isRadio, +}) => { const CheckboxRadio = isRadio ? DataListRadio : DataListCheck; return ( diff --git a/awx/ui_next/src/components/DataListRadio/DataListRadio.jsx b/awx/ui_next/src/components/DataListRadio/DataListRadio.jsx index d358e6c134..bccb1a3efe 100644 --- a/awx/ui_next/src/components/DataListRadio/DataListRadio.jsx +++ b/awx/ui_next/src/components/DataListRadio/DataListRadio.jsx @@ -16,7 +16,7 @@ function DataListRadio({ onChange(event.currentTarget.checked, event) } + onChange={event => onChange(event.currentTarget.checked, event)} aria-invalid={!isValid} disabled={isDisabled} checked={isChecked || checked} diff --git a/awx/ui_next/src/types.js b/awx/ui_next/src/types.js index 68ace24c5a..fb9981fc2e 100644 --- a/awx/ui_next/src/types.js +++ b/awx/ui_next/src/types.js @@ -78,7 +78,18 @@ export const Project = shape({ export const Inventory = shape({ id: number.isRequired, - name: string.isRequired, + name: string, + description: string, + groups_with_active_failures: number, + has_active_failures: bool, + has_inventory_sources: bool, + hosts_with_active_failures: number, + inventory_sources_with_failures: number, + kind: string, + organization_id: number, + total_groups: number, + total_hosts: number, + total_inventory_sources: number, }); export const InstanceGroup = shape({ @@ -123,19 +134,3 @@ export const Job = shape({ extra_vars: string, artifacts: shape({}), }); - -export const Inventory = shape({ - id: number.isRequired, - description: string, - groups_with_active_failures: number, - has_active_failures: bool, - has_inventory_sources: bool, - hosts_with_active_failures: number, - inventory_sources_with_failures: number, - kind: string, - name: string, - organization_id: number, - total_groups: number, - total_hosts: number, - total_inventory_sources: number, -});