diff --git a/awx/ui_next/src/components/ContentError/ContentError.jsx b/awx/ui_next/src/components/ContentError/ContentError.jsx index 53610b52d4..eda9df08fb 100644 --- a/awx/ui_next/src/components/ContentError/ContentError.jsx +++ b/awx/ui_next/src/components/ContentError/ContentError.jsx @@ -16,7 +16,7 @@ import ErrorDetail from '@components/ErrorDetail'; const EmptyState = styled(PFEmptyState)` width: var(--pf-c-empty-state--m-lg--MaxWidth); - max-width: 100%; + margin: 0 auto; `; async function logout() { diff --git a/awx/ui_next/src/screens/Inventory/InventoryAdd/InventoryAdd.jsx b/awx/ui_next/src/screens/Inventory/InventoryAdd/InventoryAdd.jsx index da666db200..027bc37afe 100644 --- a/awx/ui_next/src/screens/Inventory/InventoryAdd/InventoryAdd.jsx +++ b/awx/ui_next/src/screens/Inventory/InventoryAdd/InventoryAdd.jsx @@ -54,7 +54,9 @@ function InventoryAdd({ history, i18n }) { data: { id: inventoryId }, } = await InventoriesAPI.create({ organization: organization.id, - insights_credential: insights_credential.id, + insights_credential: insights_credential + ? insights_credential.id + : null, ...remainingValues, }); if (instanceGroups) { @@ -74,7 +76,15 @@ function InventoryAdd({ history, i18n }) { }; if (error) { - return ; + return ( + + + + + + + + ); } if (isLoading) { return ;